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。
有什么想法吗?