帆布动画工作在IE [英] canvas animation to work in IE

查看:208
本文介绍了帆布动画工作在IE的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能有这个画布动画IE6〜8个工作?

Is it possible to have this canvas animation working in IE6~8 ?

动画这里: http://jsfiddle.net/calebo/4qMMy/

我一直在使用这两个插件尝试,但它仍然是行不通的。

I have tried using these 2 plugins but it still won't work.

  • http://code.google.com/p/explorercanvas/
  • http://burzak.com/proj/fxcanvas/

推荐答案

让帆布旧版本的IE工作的唯一方法是使用某种类型的黑客。

The only way to get canvas to work in older versions of IE is to use some kind of hack.

画布只是落实到IE9,那么previous版本不知道这件事。

Canvas was only implemented into IE9, so previous versions don't know anything about it.

有许多可用的JavaScript的黑客它转化帆布成VML对象与IE6-8的兼容性。

There are a number of javascript hacks available which translate Canvas into a VML object for compatibility with IE6-8.

一个例子是在这里: HTTP://$c$c.google.com/ p / explorercanvas /

类似的黑客对SVG,它也可转换到VML老年人的IE存在。如的http://$c$c.google.com/p/svg2vml/

Similar hacks exist for SVG, which can also be converted to VML for older IEs. eg http://code.google.com/p/svg2vml/

请但是请注意,无论这些黑客有多聪明,你很可能与旧版本的IE,如果你正在做什么聪明的用帆布一些相当基本的速度问题。这些黑客都写在Javascript和需要实时对什么是基本的Javascript速度最慢的跨preTER奔波。如果你做任何形式的复杂图形,结果不会是pretty。

Please note, however, that no matter how clever these hacks are, you are likely to have some fairly fundamental speed issues with older versions of IE if you're doing anything clever with canvas. These hacks are written in Javascript and need to run in real-time on what is basically the slowest Javascript interpreter around. If you do any kind of complex graphics, the results will not be pretty.

说实话,我已经放弃试图让画布中老年IE的工作。

To be honest, I've given up trying to get Canvas to work in older IEs.

最好的成功,我已经受够了跨浏览器的动态图形使用拉斐尔库。这将产生SVG在大多数浏览器,和VML老年人独立实体,并且似乎运作良好 - 更重要的是,合理的很快,即使在旧的IE的

The best success I've had with cross-browser dynamic graphics is using the Raphael library. This produces SVG in most browsers, and VML in older IEs, and seems to work well -- and more importantly, reasonably quickly, even in older IEs.

这不是帆布,但它是跨浏览器的动态图形,并在这一天结束时,最终用户并不关心你用什么来绘制图形,只要它看起来不错。

It isn't canvas, but it is cross-browser dynamic graphics, and at the end of the day the end user doesn't really care what you use to draw the graphics, as long as it looks good.

这篇关于帆布动画工作在IE的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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