.Net默认IE版本号的两种方式

1、直接在页面的header部位meta标签中加入如下代码

<meta http-equiv="X-UA-Compatible" content="IE=8" />

 

2、或者在web.config配置中加入

<system.webServer>
  <!--默认IE版本-->
  <httpProtocol>
    <customHeaders>
      <add name="X-UA-Compatible" value="IE=9,10,11"/>
    </customHeaders>
  </httpProtocol>
</system.webServer>

posted @ 2016-07-14 17:27  chengeng  阅读(504)  评论(0编辑  收藏  举报