自定义光标图像不在所有IE中工作? [英] Custom cursor image doesn't work in all IEs?
问题描述
我想我已经尝试过不同的方法建议在互联网,但没有什么工作。这是我当前的css代码:
div {
cursor:url(images / zoomin.cur)
}
它可以正常工作除了在IE ...
$ b $不幸的是, cursor
在IE中是普通的bug,至少直到8包
在Internet Explorer for Windows(包括版本8)中,如果在外部样式表文件中指定了
相对URI值,
base URI被认为是包含
元素的文档的URI,而不是声明
出现的样式表的URI。
http://reference.sitepoint.com/css/cursor p>
您可能希望能够使用条件注释
来定位IE,然后将修改后的样式规则用不同的 url
。
I think I have tried different methods suggested all over the internet but nothing worked. This is my current css code:
div {
cursor: url(images/zoomin.cur), auto;
}
It works fine except in IE...
Unfortunately, cursor
is plain buggy in IE, at least until and including 8
In Internet Explorer for Windows up to and including version 8, if a relative URI value is specified in an external style sheet file the base URI is considered to be the URI of the document containing the element and not the URI of the style sheet in which the declaration appears.
http://reference.sitepoint.com/css/cursor
You may want be able to use a conditional comment
to target IE and then feed it a modified style rule with a different url
.
这篇关于自定义光标图像不在所有IE中工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!