Can't use .ani cursor in css?

与世无争的帅哥 提交于 2019-12-24 02:24:04

问题


I have custom my website's cursor. But css cursor: url(...); Only work with .gif .png or .cur. I want use .ani file but it's only work in IE.

cursor: url(../img/mcursor.cur),auto;

回答1:


IE supports .ani and .cur using Windows APIs. Webkit/Blink and Firefox have their own parsers for .cur (see ICOImageDecoder and nsICODecoder), but they do not have parsers for the ani format (as evidenced by no results from a code search for [ANIHEADER] etc.)

See Animated cursor support in web applications? for animated cursor support on browsers other than IE. Basically, at this time nobody else really supports any animated cursors.



来源:https://stackoverflow.com/questions/25330170/cant-use-ani-cursor-in-css

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!