即使IE = EmulateIE7,IE8兼容性视图按钮也会启用 [英] IE8 Compatibility View Button is enabled even when IE=EmulateIE7

查看:105
本文介绍了即使IE = EmulateIE7,IE8兼容性视图按钮也会启用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我们的Web应用程序,我们正在为所有页面发送X-UA-Compatible - > IE = EmulateIE7。但是,仍会显示刷新按钮旁边的兼容性视图按钮。

For our web application, we are sending the X-UA-Compatible -> IE=EmulateIE7 for all the pages. However, the Compatibility View Button next to the Refresh button, is still displayed.

1)这是预期的行为吗?
2)HTTP标头不应强制浏览器以IE7模式显示(启用Quirks + IE7Standards),然后现在显示兼容性视图按钮?

1) Is this expected behaviour? 2) Shouldn't the HTTP header force the browser to display in IE7 mode (with Quirks + IE7Standards enabled), and then now show the Compatibility View button?

如果一个站点没有IE8就绪,有没有办法强制IE7仿真,从而禁用这个按钮?

If a site is not IE8 ready, is there a way to force IE7 emulation, and thus disable this button?

推荐答案

根据事实:回顾兼容性视图您已通过使用版本控制标记 宣布[您的网站]为Internet Explorer 8准备好。不应显示兼容性视图按钮:

According to Just The Facts: Recap of Compatibility View you've declared [your website] "ready" for Internet Explorer 8 through the use of the versioning tag. The Compatibility View button should not be displayed:


网站所有者始终 控制其内容。默认情况下,Internet Explorer使用DOCTYPE切换来确定Quirks v。标准模式(默认情况下,标准模式也会映射到IE8标准)。网站所有者可以选择使用X-UA-Compatible标签来绝对声明他们希望网站显示的方式以及将标准模式页面映射到IE7标准。使用X-UA兼容标签会覆盖客户端上的兼容性视图。

Site owners are always in control of their content. By default, Internet Explorer uses DOCTYPE switching to determine Quirks v. Standards mode (again, Standards mode maps to IE8 Standards by default). Site owners can choose to use the X-UA-Compatible tag to be absolutely declarative about how they’d like their site to display and to map Standards mode pages to IE7 Standards. Use of the X-UA-Compatible tag overrides Compatibility View on the client.

有时不显示兼容性视图按钮。按钮位于停止和刷新按钮旁边的地址栏上。在某些情况下,用户没有采取任何操作,因此,兼容性视图按钮不会显示:

Sometimes the Compatibility View button isn’t displayed. The button is located on the address bar next to the ‘stop’ and ‘refresh’ buttons. There are a few cases where there’s no action for a user take and, thus, the Compatibility View button will not show:


  • 如果你'重新查看内部到Internet Explorer页面(例如:关于:InPrivate)

  • 如果您正在查看已声明已为Internet Explorer 8准备好的页面,请使用版本控制标签/ HTTP标头(如果此标签触发Quirks,IE7标准或IE8标准无关紧要,则不会显示该按钮)

  • 如果您正在查看内部网页面,您已选中在兼容性视图中显示Intranet网站复选框

  • 如果您正在查看任何网页,并且您已选中在兼容性视图中显示所有网站复选框

  • 如果您正在查看Microsoft提供的兼容性视图更新列表中包含的网页,并且您已选中包括Microsoft的更新网站列表复选框

  • 如果您已通过开发人员工具栏切换文档模式或浏览器模式设置

  • If you're viewing an internal-to-Internet Explorer page (such as about:InPrivate)
  • If you're viewing a page that has declared it's "ready" for Internet Explorer 8 through use of the versioning tag / HTTP header (it doesn’t matter if this tag triggers Quirks, IE7 Standards, or IE8 Standards, the button won’t be displayed)
  • If you're viewing an intranet page and you have the ‘Display intranet sites in Compatibility View’ checkbox selected
  • If you're viewing any webpage and you have the ‘Display all websites in Compatibility View’ checkbox selected
  • If you're viewing a webpage that is included on the Microsoft-supplied compatibility view updates list and you have the ‘Include updated website lists from Microsoft’ checkbox selected
  • If you've toggled either the ‘Document Mode’ or ‘Browser Mode’ settings via the Developer Toolbar

如果您使用的是HTTP标头,是否使用 Fiddler 验证 X-UA兼容的标题实际上是在每个页面上发送的吗?

If you're using an HTTP header, have you used Fiddler to verify that the X-UA-Compatible header is actually being delivered on every page?

如果您使用的是 META 标签,然后根据 META标签和锁定未来兼容性

If you're using a META tag, then according to META Tags and Locking in Future Compatibility:


X-UA兼容标头不区分大小写;但是,它必须出现在所有其他元素之前的网页标题(HEAD部分)中,除了TITLE元素和其他META元素。

The X-UA-compatible header is not case sensitive; however, it must appear in the Web page's header (the HEAD section) before all other elements, except for the TITLE element and other META elements.

最后,当按钮出现时IE8实际上是 in 兼容性视图吗?如果是这样,您的网站可能是来自Microsoft的IE8兼容性列表,或者是本地客户端配置:

Lastly, is IE8 actually in Compatibility View when the button shows up? If so, it is possible that your website is in IE8's compatibility list from Microsoft, or in the local client configuration:


  • 工具> 兼容性视图设置

  • 确保您的网站未列在网站下您已添加到兼容性视图

  • 尝试取消选中包含Microsoft的更新网站列表并重新启动浏览器

  • Tools > Compatibility View Settings
  • Ensure your site isn't listed under Websites you've added to Compatibility View
  • Try unchecking Include updated website lists from Microsoft and restarting the browser

这篇关于即使IE = EmulateIE7,IE8兼容性视图按钮也会启用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆