META中X-UA-Compatible的用法

<meta http-equiv = "X-UA-Compatible" cotent = "IE=edge,chrome=1"/>

这样写可以达到的效果是如果安装了GCF,则使用GCF来渲染页面,如果为安装GCF,则使用最高版本的IE内核进行渲染。

 

在IIS7或者更高版本的服务器中,只需要修改web.config文件,添加如下信息即可即可

<configuration>
  <system.webServer>
     <httpProtocol>
        <customHeaders>
           <add name="X-UA-Compatible" value="chrome=1" />
        </customHeaders>
     </httpProtocol>
  </system.webServer>
</configuration>

 

http://www.chromium.org/developers/how-tos/chrome-frame-getting-started

 

posted @ 2013-06-03 17:12  百里水上  阅读(177)  评论(0编辑  收藏  举报