我试图测试canvas标签,我开始使用这段代码:
<html>
<canvas id="example" width="200" height="200">
This text is displayed if your browser does not support HTML5 Canvas.
</canvas>
</html>
Run Code Online (Sandbox Code Playgroud)
在IE8中,我收到消息:
This text is displayed if your browser does not support HTML5 Canvas.
Run Code Online (Sandbox Code Playgroud)
然后我安装了IE9但得到了同样的错误.IE9是否支持HTML5画布?
编辑
问题是我错过了doctype标签
<!DOCTYPE html>
Run Code Online (Sandbox Code Playgroud)