【发布时间】:2010-09-22 06:54:40
【问题描述】:
HTML5 不应该在 IE9 中工作吗?它没有按预期工作。
这是我的 HTML5 代码:
<!DOCTYPE html>
<html>
<head><title>
Dripel - Welcome
</title>
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<header>Welcome to Dripel</header>
<section id="main">
I am under development. Please check back later.
</section>
<footer>
</footer>
</body>
</html>
您可以在http://www.dripel.com/查看它。
在 IE 9 中,<header> 和 <section> 元素显示为内联。请注意,我目前没有使用任何 CSS。
知道发生了什么吗?
【问题讨论】:
-
你是不是不小心开启了“兼容”模式?
-
IE9 仍处于测试阶段,所以这也可能是原因。
-
@Strelok:兼容模式已关闭