![让IE浏览器支持HTML5 让IE浏览器支持HTML5](https://image.shishitao.com:8440/aHR0cHM6Ly9ia3FzaW1nLmlrYWZhbi5jb20vdXBsb2FkL2NoYXRncHQtcy5wbmc%2FIQ%3D%3D.png?!?w=700&webp=1)
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<title>html5标签</title>
<style>
.head{background: red;}
.footer{background: blue;}
</style> </head>
<body>
<header class="head">我是header</header>
<footer class="footer">我是footer</footer>
</body>
</html>
header和footer是html5的块元素,但是旧版的ie并不支持,要支持的方法可以在head中加入
<!--[if IE]>
<script src="html5.js"></script>
<![endif]-->
js地址:http://html5shiv.googlecode.com/svn/trunk/html5.js