且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

自定义光标交互点 - CSS / JQuery

更新时间:2023-10-23 23:21:22

您只需提供热点的< x> < y> 位置:

You just need to provide the hotspot's <x> and <y> position in your CSS:

在你的示例中,中心从顶部/左边开始是24px。

In your example, the center happens to be 24px in from the top/left (huge ass cursor lol)

cursor:url(http://www.seancannon.com/_test/sniper-scope.cur) 24 24,default;

http: //jsfiddle.net/9kNyF/15/ 看?