(记录)IE8 ..样式错乱解决

1.页面中声明解析引擎为ie7
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="X-UA-Compatible" content="IE=8;FF=3;OtherUA=4" />
2. 配置webconfig文件
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<httpProtocol>
<customHeaders>
<clear />
<add name="X-UA-Compatible" value="IE=EmulateIE7" />
</customHeaders>
</httpProtocol>
</system.webServer>
</configuration>

来源:网上收集

原文地址:https://www.cnblogs.com/yuanchong/p/1425414.html