html - 光标:无不工作且自定义光标未在 png/gif 中显示
问题描述
所以我试图在我的网站上添加一个自定义光标,但是当我指向我网站中的 png 和 gif 时它没有显示。帮助
.body{
height: 100vh;
cursor: none;
}
.cursor{
width:40px;
height:40px;
border: 1px solid white;
border-radius:50%;
position: absolute;
}
解决方案
如果不查看您的 HTML,这有点难以理解,但请尝试添加.body:hover{cursor:none}
推荐阅读
- javascript - 不要直接改变状态。使用 setState()
- javascript - 有人可以帮助我在 Safari 中使用 HTML5 播放器的画中画吗?
- dart - Flutter MaterialApp TextField 透视变换无法正确渲染
- function - AD9833频率控制使用STM32F030F4P6
- java - REST Web 服务不返回 XML 响应,甚至在 Eclipse 中没有登录控制台
- mysql - 如何将功能从 MySQL 转换为 Firebird?
- java - 没有定义名为 '' 的 bean
- python - 将元组附加到给定 id 的列表中
- c# - 不能用布尔标志停止线程
- python - 将逗号分隔的值字符串转换为列表,并使用理解将其所有值和键转换为整数或浮点数