如果我强制 IE 8 的开发工具为“浏览器模式:IE 8”和“文档模式:IE 7 标准”,现在是 IE 7 还是 IE 8?

发布于 2024-09-06 19:03:30 字数 574 浏览 1 评论 0原文

如果我使用严格的 HTML 4.01 提供页面

<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'>

,并将该页面加载到 IE 8 中,则 IE 8 的开发人员工具显示它正在使用:

Browser Mode: IE 8     Document Mode: IE 7 Standards

那么,IE 8 是否部分使用 IE 8 引擎和部分 IE 7 引擎?哪一部分是 IE 8,哪一部分是 IE 7?

HTTP_USER_AGENT 显示为:

Mozilla/4.0(兼容;MSIE 8.0;Windows NT 5.1;Trident/4.0;.NET CLR 1.1.4322;.NET CLR 2.0.50727;.NET CLR 3.0.04506.30;.NET CLR 3.0.04506.648; .NET CLR 3.5.21022;.NET CLR 3.0.4506.2152;.NET CLR 3.5.30729)

所以我想它不是“完全”IE 7。

If I serve a page using

<meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'>

using HTML 4.01 strict, and load this page into IE 8, then the IE 8's Developer Tools shows that it is using:

Browser Mode: IE 8     Document Mode: IE 7 Standards

Well then, is IE 8 using partly IE 8 engine and partly IE 7 engine? Which part is IE 8 and which part is IE 7?

HTTP_USER_AGENT is showing as:

Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)

so I'd imagine it is not "totally" IE 7.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一念一轮回 2024-09-13 19:03:30

由于元标记告诉 IE8 模拟 IE7,因此布局引擎(用于呈现页面的浏览器组件)被更改为模仿 IE7。因此,文档模式显示为 IE7 标准模式。

由于 IE8 依赖元标记来确定如何呈现页面,我猜测 IE8 没有设置为使用兼容性视图。这样,浏览器模式就会显示为 IE8,并且它发送的用户代理字符串也是 IE8 的。

回顾一下:浏览器的其余部分仍然是 IE8;只有布局引擎充当 IE7 的引擎。

Due to the meta tag telling IE8 to emulate IE7, the layout engine (the browser component used to render pages) is changed to mimic that of IE7. Ergo, Document Mode shows up as IE7 standards mode.

Since IE8 is relying on the meta tag to determine how to render a page, I'm guessing IE8 isn't set to use Compatibility View for it. With that, the browser mode shows up as IE8 and the user-agent string it sends is also IE8's.

So to recap: the rest of the browser is still IE8; only the layout engine acts as IE7's.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文