无法在CSS中使用.ani光标? [英] Can't use .ani cursor in css?

查看:148
本文介绍了无法在CSS中使用.ani光标?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已自定义网站的光标。但是CSS光标:url(...);仅适用于.gif .png或.cur。我想使用.ani文件,但只能在IE中使用。

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;


推荐答案

IE使用Windows API支持.ani和.cur。 Webkit / Blink和Firefox都有自己的.cur解析器(请参见 ICOImageDecoder nsICODecoder ),但它们没有用于ani格式的解析器(通过代码搜索[ANIHEADER]等未得到任何结果证明)

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.)

请参见中的动画光标支持Web应用程序?,以在IE以外的浏览器上获得动画光标支持。基本上,目前没有人真正支持任何动画光标。

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中使用.ani光标?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆