“浏览器模式"与“浏览器模式"的区别和“文档模式"在 Internet Explorer 中 [英] Difference between "Browser Mode" and "Document Mode" in Internet Explorer

查看:50
本文介绍了“浏览器模式"与“浏览器模式"的区别和“文档模式"在 Internet Explorer 中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很高兴我不能再使用 IETester,因为我们公司不再支持 IE6,而 IE9 有一些非常酷的开发人员工具.我可以设置浏览器模式"和文档模式",但我无法区分.有人知道吗?这篇文章也没有帮助我:IE8 浏览器模式 vs 文档模式

I´m really glad that I must no more use IETester since IE6 support was dropped in our company and IE9 has some quite cool developer tools. I can set "Browser Mode" and "Document Mode" but I can´t tell the difference. Does anyone know it? This post also didn´t help me out: IE8 browser mode vs document mode

谢谢

推荐答案

文档模式是浏览器用来呈现页面的方式:IE9、IE8、IE7 或 Quirks.浏览器模式设置浏览器如何向 Web 服务器和 JavaScript 标识自己.

Document Mode is what the browser uses to render the page: IE9, IE8, IE7 or Quirks. Browser Mode sets how the browser identifies itself to the web server and to JavaScript.

从测试的角度来看,这似乎是不必要的混淆,因为这是两个单独的选项,您通常想要更改这两个选项,例如,将浏览器模式设置为 IE8,将文档模式设置为 IE8,以使 IE9 伪装成 IE8.

From a testing standpoint, it seems unnecessarily confusing that these are two separate options and you usually want to change both, for example, set the Browser mode to IE8 and the Document Mode to IE8 to get IE9 to pretend to be IE8.

还有用于浏览器模式的 Internet Explorer 9 兼容性视图选项.这似乎与 IE7 模式相同,只是用户代理字符串还显示Trident/5.0"(Trident 是 IE 布局引擎).

There's also the Internet Exploer 9 Compatibility View option for Browser Mode. This seems to be the same as IE7 mode except the user-agent string also says "Trident/5.0" (Trident is the IE layout engine).

这篇关于“浏览器模式"与“浏览器模式"的区别和“文档模式"在 Internet Explorer 中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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