Internet Explorer 10在Windows 8上不显示自定义光标 [英] Internet Explorer 10 not showing custom cursor on Windows 8
问题描述
我想在跨浏览器HTML5网路应用程式中变更滑鼠游标。
通过简单地添加适当的CSS一切工作正常在所有浏览器,包括在Windows 7上的IE。
I am trying to change the mouse cursor in a cross-browser HTML5 webapp. By simply adding the appropriate CSS everything works fine in all browsers, including IE on Windows 7.
同样的webapp在Windows 8无法更改光标,虽然通过检查CSS我可以看到正确的类应用和浏览器查询服务器的适当的.cur文件。
The same webapp in Windows 8 fails to change the cursor, although by inspecting the CSS I can see that the correct class is applied and the browser queries the server for the appropriate .cur file.
在Windows 8上有任何限制我应该知道吗?
Is there any limitation on Windows 8 that I should be aware of?
编辑
CSS示例工作在IE10 Win7,不工作在IE10 Win8。例子应该是无关的给定的问题)。
CSS example (note: this works on IE10 Win7, does not work on IE10 Win8. The example should be irrelevant given the question).
.customCursor-move {
cursor: url(/free/images/pointers/move.cur),url(free/images/pointers/move.cur),url("../images/pointers/move.cur"), default !important;
}
CSS是免费的/ css。
The CSS is in free/css.
推荐答案
Internet Explorer cursor
css属性有问题:
http://reference.sitepoint.com/css/cursor
Internet Explorer cursor
css property is buggy :
http://reference.sitepoint.com/css/cursor
它也可以包括IE10。您应该尝试使用绝对或相对路径到您的 .cur
文件,取决于你现在有什么。
It could also include IE10. You should try wether to use an absolute or relative path to your .cur
file , depending of what you have now.
也可能会有帮助:
请注意,Windows操作系统要求图片尺寸为32 x 32像素或更小,但规格允许使用更大的尺寸。
Note also that the Windows operating system requires the image to be 32 x 32 pixels or smaller although the specifications do allow for larger sizes than this.
这篇关于Internet Explorer 10在Windows 8上不显示自定义光标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!