如何让IE9以下版本(ie6/7/8)认识html5元素

2019-01-28 18:59:20王冬梅

该脚本已经托管在Google Project Hosting上,你可以直接外链这个脚本:

复制代码

<!--[if lt IE 9]>
<script src="https://html5shim.googlecode.com/svn/trunk/html5.js"></script>
< ![endif]-->

另外,这段脚本需要放在页面起始的部分,最好是head中,不要放在底部。这样IE在解析页面标签之前就会先运行这段代码。