【问题标题】:Custom cursor property not working IE browser自定义光标属性不起作用 IE 浏览器
【发布时间】: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?我找不到合适的链接来转换它。

谢谢。

【问题讨论】:

标签: css


【解决方案1】:

IE 不支持 png 格式的光标。

您需要转换为“cur”格式。

css 代码如下所示

h1{cursor: url(http://myworkstudio.com/app/cursor1.cur), pointer}

您可以参考以下网址:

http://chevronscode.com/index.php/ie-custom-cursor.html

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多