最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Possible to replace cursor with my own custom image? - Stack Overflow

programmeradmin3浏览0评论

Is it possible to replace the cursor icon apart from these:

.asp?filename=trycss_cursor

with my custom image that I designed in Photoshop? I know this is possible because I have seen some websites with cursor having custom image. Question is: How do I do it and whether it is standard approach? Can I be sure that it works across all browsers?

Is it possible to replace the cursor icon apart from these:

http://www.w3schools./cssref/tryit.asp?filename=trycss_cursor

with my custom image that I designed in Photoshop? I know this is possible because I have seen some websites with cursor having custom image. Question is: How do I do it and whether it is standard approach? Can I be sure that it works across all browsers?

Share Improve this question asked Aug 2, 2012 at 5:21 JackJack 7,55722 gold badges66 silver badges107 bronze badges 1
  • I think your question is answered here: stackoverflow./questions/336925/custom-cursor-image-css – Michael Peterson Commented Aug 2, 2012 at 5:24
Add a ment  | 

3 Answers 3

Reset to default 8

Yes, just do...

cursor: url(path/to/image.png);

jsFiddle.

Try this: cursor: url(image.png);

Look paragraph 'Property Values': http://www.w3schools./cssref/pr_class_cursor.asp

Yes it's. when i have finished your cursor image, just upload it on a host website (there are many on the web) then use the following css property to use it. Supposing you want to use it on images, just do :

img  {
   cursor: url(path to your hosted cursor image) ;
}
发布评论

评论列表(0)

  1. 暂无评论