IE8不兼容你的网页 怎么办? – 简单开启兼容模式

只需要在页面中加入如下HTTP meta-tag:

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

只要IE8一读到这个标签,它就会自动启动IE7兼容模式,保证页面完整展示.

还有一种方法是针对整个网站的,在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>

或者你还可以使用IIS admin tool来定义,更为简单.

IIS, IE8, 兼容

IIS, IE8, 兼容

PS: 只是权宜之计, 还是尽快符合W3C标准为好.
来源: http://www.cnbeta.com/articles/63391.htm

发表评论

电子邮件地址不会被公开。

您可以使用这些 HTML 标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>