Skip to content

Instantly share code, notes, and snippets.

@RockyMyx
Last active December 19, 2015 01:29
Show Gist options
  • Save RockyMyx/5876712 to your computer and use it in GitHub Desktop.
Save RockyMyx/5876712 to your computer and use it in GitHub Desktop.
HTML: X-UA-Compatible.html
<!-- http://stackoverflow.com/questions/3656237/why-inputtype-text-is-not-working-in-ie -->
<!-- http://lightcss.com/add-x-ua-compatible-meta-to-your-website/ -->
<!-- 在IE8刚推出的时候,很多网页由于重构的问题,无法适应较高级的浏览器,所以使用X-UA-Compatible标签强制IE8采用低版本方式渲染。-->
<!--IE7-->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<!--IE8-->
<meta http-equiv="X-UA-Compatible" content="IE=100" >
<!--IE=edge告诉IE使用最新的引擎渲染网页,chrome=1则可以激活Chrome Frame-->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment