Can't use .ani cursor in css?

2019-07-21 05:02发布

问题:

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.



标签: css cursor