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

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

问题描述

我正在尝试使用 HTML5 画布元素来绘制一些圆弧和圆 - 这在 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 渲染器模拟画布元素的 JS 库.

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

请注意,在 Internet Explorer 9 中,本机支持画布标签!有关详细信息,请参阅 MSDN 文档...

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

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

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