Increase cursor size in HTML body

后端 未结 2 1077
时光取名叫无心
时光取名叫无心 2020-12-11 18:10

Is there any way to programmatically increase the size of the cursor in a browser based application using CSS or jQuery?

I can chan

相关标签:
2条回答
  • 2020-12-11 18:48

    You can't increase the size of the default cursor using CSS or jQuery.

    But you can replace the cursor with the custom image of any size using pure CSS by cursor:Url() property.

    This is pure CSS and no need of Javascript/jQuery hack for this.

    For more info: https://developer.mozilla.org/en-US/docs/Web/CSS/cursor/url

    0 讨论(0)
  • 2020-12-11 19:02

    there is no property regarding size of cursor but still you can use custom cursors, the trick behind this is to hide real cursor while show custom image. You can find more about this here Create Custom cursors

    edit: above link is dead, it's still found on wayback machine: https://web.archive.org/web/20170605131602/http://www.ajaxblender.com/howto-create-custom-image-cursors.html

    0 讨论(0)
提交回复
热议问题