problem 浏览器低级版本不识别元素问题

如果浏览器不识别header footer article这些元素的时候,我们可以使用javascript代码来辅助实现:
<script type="text/javascript">
		document.createElement('header');
		document.createElement('footer');
		document.createElement('article');
</script>


只需要加入这句就可以了:
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->


html5 enabling script:

http://remysharp.com/2009/01/07/html5-enabling-script/

猜你喜欢

转载自hongliu.iteye.com/blog/1504805