ie兼容html5
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
指定文档兼容模式
要为你的网页指定文件模式,需要在你的网页中使用meta元素放入X-UA-Compatible http-equiv 标头。以下是指定为Emulate IE7 mode 兼容性之范例
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
//这样写可以达到的效果是如果安装了GCF,则使用GCF来渲染页面,如果为安装GCF,则使用最高版本的IE内核进行渲染。
<meta http-equiv = "X-UA-Compatible" content = "IE=edge,chrome=1" />