【发布时间】:2014-02-11 00:10:08
【问题描述】:
我为任务使用了自定义光标属性,但它不适用于 ie 浏览器。我使用了以下sn-p。
<html>
<head>
<title>Custom Cursor</title>
<style>
h1{
cursor: url(http://www.franco.it/Images/Lookf.png), auto;
}
</style>
</head>
<body>
<h1>Custom Cursor</h1>
</body>
</html>
它适用于 Chrome、Firefox 和 Safari - 除了 IE 之外的所有应用程序。有些文章说我应该使用.cur 格式,但是如何将图像转换为cur?我找不到合适的链接来转换它。
谢谢。
【问题讨论】:
-
可能是因为 IE 太烂了……你到底在说什么 IE 版本???
-
Windows Internet Explorer 9 及更高版本:通过 url() 指定自定义游标时,除了自定义游标外,还必须提供至少一个“后备”游标,否则自定义游标将无法正确呈现.例如,“光标:url(cursors/cursor2.ani),指针”。 msdn.microsoft.com/en-us/library/ie/aa358795(v=vs.85).aspx
标签: css