Can't use .ani cursor in css?

2019-07-21 05:08发布

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;

标签: css cursor
1条回答
甜甜的少女心
2楼-- · 2019-07-21 05:31

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.

查看更多
登录 后发表回答