Before displaying a standards-mode Web page, Internet Explorer 8 checks to see if the domain name of the Web site appears in the Compatibility View List. If so, the site is displayed using Compatibility View. If not, and the page contains no other direction, Internet Explorer 8 displays the page in Internet Explorer 8 Standards mode.
When a standards-based Web page is displayed in Compatibility View, the following changes occur.
• Pages are displayed in IE7 mode rather than IE8 mode.
• In the user-agent string, the browser identifies itself as MSIE 7.0 instead of MSIE 8.0.
• Conditional comments and version vectors recognize the browser as Internet Explorer 7, rather than Internet Explorer 8.
These changes help ensure that users can still use Web sites that do not fully support the features of Internet Explorer 8.
Please note that the X-UA-COMPATIBLE header has greater precedence than Compatibility View. If a Web site is on the Compatibility View List and a page on that site includes an X-UA-COMPATIBLE header telling Internet Explorer 8 to display a page in IE8 mode, the page is displayed in Internet Explorer 8 Standards mode. This allows Web developers to support Internet Explorer 8 Standards mode on an incremental basis.
本文探讨了Internet Explorer 8如何处理标准模式网页,并解释了兼容视图的作用及其实现方式。文中提到,IE8会检查网站是否在兼容视图列表中,若在则以IE7模式显示;同时,X-UA-Compatible头信息具有更高优先级。
216

被折叠的 条评论
为什么被折叠?



