我不知道为什么,但我做不到 body{cursor:*any cursor*}
.也许 JS Fiddle 不支持它,但它确实支持任何元素,所以我可能错了。
https://jsfiddle.net/5unnxjLa/
我不想使用 <div>
覆盖背景来改变它,我只是想要它,这样当我将鼠标拖到 body 上时我可以停止鼠标变为抓取/文本光标。
最佳答案
好吧,要么改用 html:
html { cursor:wait }
或者在 html 和 body 上设置 height: 100%
:
html, body {
height: 100%;
}
body {
cursor:wait
}
关于html - CSS 主体光标或拖动光标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37586360/