IE9支持HTML5 Canvas标签 [英] IE9 Support for HTML5 Canvas tag

查看:144
本文介绍了IE9支持HTML5 Canvas标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图测试canvas标签,我开始使用这个代码:

I am trying to test out the canvas tag, I started with this code:

<html>
 <canvas id="example" width="200" height="200">
    This text is displayed if your browser does not support HTML5 Canvas.
 </canvas>
</html>

在IE8中,我收到以下消息:

In IE8 I get the message:

 This text is displayed if your browser does not support HTML5 Canvas.

然后我安装IE9,但得到相同的错误。 IE9是否支援HTML5 canvas?

I then installed IE9 but get the same error. Does IE9 support HTML5 canvas or not?

编辑

问题是我缺少doctype标签

The problem was that I was missing the doctype tag

<!DOCTYPE html>


推荐答案

IE9支持canvas。 这里是一个示例。

IE9 does support canvas. Here is an exmaple.

如果画布在您的浏览器中无法使用,请按F12(打开开发者工具),并确保IE不处于兼容模式。

If canvas does not work in your browser, press F12 (open developer tools), and make sure, that IE is not in compatibility mode.

这篇关于IE9支持HTML5 Canvas标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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