linsu

网页默认浏览器以IE那个版本查看

1.第一种方式

    页面上添加meta标签

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

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

2.第二种就在web.config 设置

  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <clear />
        <add name="X-UA-Compatible" value="IE=EmulateIE8" />
      </customHeaders>
    </httpProtocol>
  </system.webServer>

分类:

技术点:

相关文章:

  • 2021-12-31
  • 2021-07-30
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
猜你喜欢
  • 2021-10-25
  • 2022-01-19
  • 2022-12-23
  • 2021-12-19
  • 2021-08-27
  • 2021-11-07
  • 2022-12-23
相关资源
相似解决方案