Asp.Net 启用全局IE兼容模式

 

Asp.Net 启用全局IE兼容模式,不失为一个种简单最有效的解决方案:

 <system.webServer>
    <!-- 配置全局兼容 -->
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=5" />
      </customHeaders>
    </httpProtocol>    
 <system.webServer>

在Fiddler查看Header请求中能找到它,已经顺利打开兼容模式:

 

posted @ 2016-01-25 11:52  Marksion  阅读(1104)  评论(1编辑  收藏  举报