HTML5新标签不兼容(IE6/IE7/IE8)的完美解决方法

 分类:html5教程时间:2016-01-23 17:08:35点击:

<!doctype html>
<html>
<head>
<meta charset="gb2312">
<!--[if lt IE 8]> 
<script src="html5.js"></script>
<![endif]-->
<!--[if lte IE 8]> 
<noscript>
     <style>.html5-wrappers{display:none!important;}</style>
     <div class="ie-noscript-warning">您的浏览器禁用了脚本,请<a href="">查看这里</a>来启用脚本!或者<a href="/?noscript=1">继续访问</a>.
     </div>
</noscript>
<![endif]-->

<title>HTML5新标签不兼容(IE6/IE7/IE8)的完美解决方法</title>
<style>
head{ display:none;}
header,footer{display:block; font-size:36px; background:red;}
</style>
</head>

<body>
<header>这是头部</header>
<footer>这是网站底部!!!</footer>
</body>
</html>

html5.js文件下载:http://pan.baidu.com/s/1dEi5ppZ

除注明外的文章,均为来源:老汤博客,转载请保留本文地址!
原文地址: