为什么我的HTML5脚本在IE9中不起作用?

时间:2011-11-29 16:36:18

标签: html5 internet-explorer-9

我有以下html5页面,只是设置s the background for the canvas, it works in Chrome and Firefox but it在IE9中不起作用。请帮我搞清楚 我的剧本:http://www.tutorialswindow.com/Jatek/index.html

1 个答案:

答案 0 :(得分:1)

IE9要求您声明HTML5文档类型以使用canvas标记。您可以通过放置在代码顶部来完成此操作。我注意到你没有正确的doctype存在。

    <!DOCTYPE html>
相关问题