How to change cursor from pointer to finger using jQuery?

前端 未结 4 1092
北恋
北恋 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:18

    How do you change your cursor to the finger (like for clicking on links) instead of the regular pointer?

    This is very simple to achieve using the CSS property cursor, no jQuery needed.

    You can read more about in: CSS cursor property and cursor - CSS | MDN

    .default {
      cursor: default;
    }
    .pointer {
      cursor: pointer;
    }
    default
    
    pointer

提交回复
热议问题