如何在html中设置自定义光标?

And*_*ore 3 html css cursor

我想为我的网站使用自定义光标图标(永久)。我该怎么做?光标下载为一个简单的.ico文件。我试过自定义光标命令,但它似乎没有用。

Ben*_*nni 6

html, body {
    cursor: url("cursor.ico"), default;
    /* just change the cursor.ico path to your location */
}
Run Code Online (Sandbox Code Playgroud)

https://davidwalsh.name/css-custom-cursor