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

2020-04-24 19:39:55易采站长站整理

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

复制代码
<!–[if lt IE 9]>
<script src=”//html5shim.googlecode.com/svn/trunk/html5.js”></script>
< ![endif]–>

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