IE9兼容模式:它模拟什么版本?
我使用的是最新的IE9,并在兼容模式下测试我的网站。但这实际上是在模拟/复制哪个版本的 IE?目前还不清楚。是6个、7个还是8个?
I'm using the latest IE9, and test my websites in compatibility mode. But what version of IE is this actually simulating/replicating? It's not clear. Is it 6, 7 or even 8?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您需要按 F12 显示开发人员工具。这将向您显示正在模拟哪个浏览器以及您是否处于怪异模式或标准模式。 IE9只能模拟IE8和IE7。
如果您需要 IE6(如果您需要,我们很遗憾),您将需要使用仅安装了 IE6 的虚拟机。 Microsoft 确实提供了需要 VirtualPC 的免费软件。
如果您特别询问 IE9 兼容性视图,它主要用于测试以了解网站的效果如果用户启用了兼容性视图,则进行渲染。其中一些区别在于,它像 IE7 一样报告用户代理、版本向量和文档模式,但还在用户代理中包含一个指示浏览器实际上是 IE9 的指示符。
You need to show the developer tools by hitting F12. That will show you which browser is being emulated and whether you are in Quirks or Standards mode. IE9 can only emulate IE8 and IE7.
If you need IE6 (and if you do, you have our pity), you'll will need to use virtual machines which only have IE6 installed. Microsoft does provide free ones that require VirtualPC.
If you are specifically asking about IE9 Compatibility View, it is designed primarily for testing to see how the site will render if the user has enabled Compatibility View. Some of the differences are that it reports a user agent, version vector and document mode as if it is IE7 but also includes an indicator in the user agent that the browser is really IE9.