IE中使用cursor设置鼠标指针样式问题

我想修改鼠标的指针的样式,chrome中显示正常,但是在IE中却无法显示.

URL:http://www.nyxchaos.xyz/index...

代码:

<body style="padding: 0;margin: 0;">
    <div style="position: absolute;top: 0px;left: 0px;width: 50%;height: 100%;z-index: 999;cursor: url(http://nyx.oss-cn-shanghai.aliyuncs.com/MyPicture/left.cur),hand;background:#000;opacity:0;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);"></div>
    <div style="position: absolute;top: 0px;right: 0px;width: 50%;height: 100%;z-index: 999;cursor: url(http://nyx.oss-cn-shanghai.aliyuncs.com/MyPicture/right.png),auto;background:#000;opacity:0;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0);"></div>
    <img src="http://nyx.oss-cn-shanghai.aliyuncs.com/MyPicture/crescent.jpg">
</body>

图片的尺寸和URL问题我都做过尝试,也加了背景,然而还是不起作用,希望有人能够解答.

补充:IE9
补充:IE11也不行.

阅读 5.9k
2 个回答

因为IE仅仅支持ani和cur格式的图片作为鼠标的样式,不支持png。
只是把图片的后缀名.png改为.cur欺骗浏览器是没用的。

新手上路,请多包涵

corsur:pointer;

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题