-1

似乎无法在 ie8 中完成这项工作我只想让我的 html5 工作但似乎什么都没有出现我需要添加更多的 css 吗?

 <!-- IE Conditional Comments -->


<!--[if lte IE 8]>
 <script>
document.createElement('header');
document.createElement('nav');
document.createElement('footer');

<style type="text/css">
menu, nav, footer { display:block; }
</style>

4

1 回答 1

0

code.google.com/p/html5shiv

在元素中插入缩小分布 shiv(在 CSS 之后或之前):

<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->

希望有帮助。

于 2013-06-05T15:35:28.597 回答