如何在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 */
}