按钮中的 URL 光标

Ped*_* D. 5 html javascript css mouse-cursor

我有一个光标 url,我想在光标位于按钮上时更改光标,我尝试过指针、悬停、url,但它不起作用有人可以帮助我吗?谢谢。

<button id="btt" style="cursor:hover" type="button">
Run Code Online (Sandbox Code Playgroud)

我有的网址:

<style type="text/css">
    body, a:hover {
        cursor: url(http://cur.cursors-4u.net/games/gam-14/gam1379.ani), url(http://cur.cursors-4u.net/games/gam-14/gam1379.png), progress !important;
    }
</style>
Run Code Online (Sandbox Code Playgroud)

myf*_*hub 4

您的代码将光标图像应用于<a>元素而不是按钮。

a:hover, button {
  cursor: url(http://cur.cursors-4u.net/games/gam-14/gam1379.ani), 
          url(http://cur.cursors-4u.net/games/gam-14/gam1379.png), 
          progress !important;
}
Run Code Online (Sandbox Code Playgroud)

https://css-tricks.com/almanac/properties/c/cursor/