如何在IE中使用HTML5 canvas元素? [英] How can I use the HTML5 canvas element in IE?

查看:171
本文介绍了如何在IE中使用HTML5 canvas元素?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图使用HTML5 canvas元素来绘制一些弧和圆 - 这在FF中是完美的,但IE8似乎不支持它。

I am trying to use the HTML5 canvas element to draw some arcs and circles - this works perfectly in FF but IE8 does not seem to support it.

有存在的Javascript库似乎使IE8与Canvas工作得很好。 此处可以找到一个示例

Now, there exist Javascript libraries which seem to make IE8 work well with Canvas. An example can be found here.

我已经阅读了他们的整个来源,但我不明白他们是如何使Canvas工作与IE8。

I have read their entire source but I cannot understand how they are making Canvas work with IE8. Can somebody please throw some light on the method used?

推荐答案

页面正在使用 excanvas - 使用IE的VML渲染器模拟canvas元素的JS库。

The page is using excanvas - a JS library that simulates the canvas element using IE's VML renderer.

请注意,在Internet Explorer 9中,原生支持canvas标签 !有关详细信息,请参见 MSDN文档 ...

Note that in Internet Explorer 9, the canvas tag is supported natively! See MSDN docs for details...

这篇关于如何在IE中使用HTML5 canvas元素?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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