How to change cursor from pointer to finger using jQuery?

前端 未结 4 1098
北恋
北恋 2020-12-12 16:36

This is probably really easy, but I\'ve never done it before. How do you change your cursor to the finger (like for clicking on links) instead of the regular pointer?

<
4条回答
  •  醉酒成梦
    2020-12-12 17:28

    $('selector').css('cursor', 'pointer'); // 'default' to revert
    

    I know that may be confusing per your original question, but the "finger" cursor is actually called "pointer".

    The normal arrow cursor is just "default".

    all possible default pointer looks DEMO

提交回复
热议问题