我知道您可以使用图像更改网页的光标,但是是否可以仅使用CSS"设置"光标?
就像是...
div.changecursor:cursor {
width: 10px;
height: 10px;
background: blue;
border-radius: 199px; /* make it a circle */
}
Run Code Online (Sandbox Code Playgroud)
光标属性允许使用链接图像的 url 来用作光标。这样您就可以根据需要进行自定义
财产和价值
.classX {
cursor: url(myCursor.cur);
}
Run Code Online (Sandbox Code Playgroud)
好的 gif 等