IE8默认情况下呈现为IE7? [英] IE8 Rendering as IE7 By Default?
问题描述
我刚收到一台新电脑,IE8设置为将所有网站渲染为IE7。这对我来说很震惊。有谁知道IE8的 ALL 安装是否默认为IE7渲染?如果是这样,Web开发人员可以做些什么来强制执行IE8吗?
I just received a new computer at work, with IE8 set to render all sites as IE7. This was a shock to me. Does anyone know if ALL installations of IE8 default to IE7 rendering? And if so, is there anything a web developer can do to force IE8 rendering?
推荐答案
据我所知,IE8默认只渲染内联网站点为IE7。要禁用此功能,请转到工具 - >兼容性视图设置,然后取消选中在兼容性视图中显示Intranet站点。此对话框中还有一个复选框在兼容性视图中显示所有网站 - 看起来它已经过检查。它不是标准设置,也许是你的域名政策。
As I know by default IE8 renders only intranet sites as IE7. To disable this go to Tools -> Compatibility View Settings and uncheck "Display intranet sites in Compatibility view". Also there is a checkbox "Display all sites in Compatibility view" in this dialog - it looks like it's checked for you. It's not standart setting, maybe it is your domain policy.
无论如何,如果你需要强制IE8渲染页面,因为IE8使用 X-UA -Compatible
http标头。您可以在页面的 head
部分添加 meta
标记,如下所示:
Anyway, if you need to force IE8 to render pages as IE8 use X-UA-Compatible
http header. You can add meta
tag in a head
section of your page, like this:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
这篇关于IE8默认情况下呈现为IE7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!