如何在html中设置自定义光标? [英] How to set a custom cursor in html?
本文介绍了如何在html中设置自定义光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为我的网站永久使用一个自定义光标图标.我该怎么做?光标将作为简单的 .ico 文件下载.我尝试了自定义光标命令,但似乎没有用.
I want to use a custom cursor icon for my web site (permanently). How can i do it? The cursor is downloaded as a simple .ico file. I have tried the custom cursor command but it did not seem to work.
推荐答案
html, body {
cursor: url("cursor.ico"), default;
/* just change the cursor.ico path to your location */
}
https://davidwalsh.name/css-custom-cursor
这篇关于如何在html中设置自定义光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文