现在的位置: 首页 > 综合 > 正文

IE8兼容IE7的方法

2018年06月10日 ⁄ 综合 ⁄ 共 351字 ⁄ 字号 评论关闭

在Head中加入

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

 

还有一种方法是针对整个网站的,在IIS中加入如下描述符就可以有相同的效果,当然这么做范围更广.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <add name="X-UA-Compatible" value="IE=EmulateIE7">
      </customHeaders>
    </httpProtocol>
  </system.webServer>
</configuration>

抱歉!评论已关闭.