首页 > 解决方案 > 将按钮光标 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;
  }

为什么有些图像有效而有些无效?如何让我的图像显示?

标签: css

解决方案


推荐阅读