css - 将按钮光标 URL 设置为有效图像
问题描述
如何让我的图像在按钮元素的类光标属性中工作?
此图像有效:
.my-button {
cursor:url(https://www.gravatar.com/avatar/0fdacb141bca7fa57c392b5f03872176?s=48&d=identicon&r=PG&f=1), pointer;
}
但是这个图像不起作用:
.my-button {
cursor:url(http://etayluz.com/ear_icon.png), pointer;
}
为什么有些图像有效而有些无效?如何让我的图像显示?
解决方案
推荐阅读
- python - python的系统注册表
- javascript - 如何实施
- nav-tabs在 MVC 中的行为?
- swift - 通过金属中的任意 (x,y) 点围绕 z 轴旋转
- c# - 我可以将压缩的 GZipStream 复制到另一个流吗?
- python - Python - Entire PC network gets slower during repeated request
- swift - 一元运算符和未终止的字符串文字问题
- cordova - 更改生成的 Cordova appxupload 包的文件名
- c++ - 从/在一个目录中加载/保存多个图像 - opencv c++
- python - 分钟数据不起作用滑索
- node.js - 在 node-sass 编译成 css 之前编辑 sass