只要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來定義,更為簡單.

image