是否可以仅使用 CSS 将“指针”的光标更改为自定义光标?
所以如果我像这样引用它:
button {
cursor: pointer;
}
html {
cursor: url("/static/images/paw-cursor.svg"), pointer;
}
pointer
将引用我的自定义光标。否则它将使用浏览器的默认光标。
最佳答案
是的,这是可能的。使用:
cursor: url(/static/images/paw-cursor.svg), auto;
https://css-tricks.com/almanac/properties/c/cursor/
JSFiddle:http://jsfiddle.net/1majnh04/
关于css - 为 "pointer"使用自定义光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54895429/