CSS游标自定义 [英] CSS cursor customization
本文介绍了CSS游标自定义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图创建一个CSS代码,当光标在网页上时将光标更改为图片文件。我看到的网站,给你一个简单的代码,但它们总是有广告。
I'm trying to make a CSS code that changes the cursor to a picture file when the cursor is on a webpage. I've seen sites that give you a simple code to do it but they always have ads. Any codes you guys know that can do this?
推荐答案
是的,只需将以下css代码应用到您的body标签想要整页的效果):
Yes, simply apply the following css code to your body tag (assuming you want effect for whole page):
body {
cursor: url('URL to image');
}
详细信息:
图像文件必须为32x32或更小
Internet Explorer仅支持.cur文件
Further information:
The image file must be 32x32 or smaller
Internet explorer only supports .cur files
这篇关于CSS游标自定义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文