如何可靠是网络浏览器的探险模式? [英] How reliable is Internet Explorers browser mode?

查看:136
本文介绍了如何可靠是网络浏览器的探险模式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎无法找到这个任何答案:

I can't seem to find any answers to this:

当我改变IE浏览器模式,多少我可以依靠它实际渲染网页,就好像它是让当我使用IE10说IE8?

When i change the browser mode in IE, how much can I rely on it actually rendering the webpage as if it were lets say IE8 when I'm using IE10?

推荐答案

我看到不同的结果为止;我从来没有测试IE9的版本,所以如果微软做的更好的工作这一次(这样的东西在 HTTP报道无法评论:// stackoverflow.com/a/11418046/841830 是更具体的CSS比我一直在寻找)。

I'm seeing mixed results so far; I never tested the IE9 version, so cannot comment if Microsoft have done better job this time round (the kinds of things reported at http://stackoverflow.com/a/11418046/841830 are much more specific to CSS than I've been looking at).

具体来说,我已经在Windows 7(64位)安装IE10和测试HTML5特性。文档模式的选择似乎要比浏览器模式的选择更为重要。

Specifically I've installed IE10 on Windows 7 (64-bit), and tested HTML5 features. The selection of Document Mode appears to be much more important than the selection of Browser Mode.


  • 用户代理正确更改

  • IE的检测成语作品

  • User agent changes correctly
  • The IE detection idiom works

 <!--[if lte IE 9]>
 <script language="javascript">
 var is_ie_9_or_earlier=true;
 &lt;</script>
 &lt;![endif]-->


  • 的typeof window.PostMessage :错了。这是被返回在IE7模式对象。我相信这是在现实IE7定义。 IE8 / IE9 / IE10正确返回为对象。

  • typeof window.PostMessage: WRONG. this is being returned as "object" in IE7 mode. I believe it is undefined in real IE7. IE8/IE9/IE10 correctly return it as "object".

    在同一台机器上。另一方面ietester是,更离奇的(JavaScript的不正常运行时,它应该有)。

    On the other hand ietester on the same machine was much weirder (javascript not running correctly when it should have).

    这篇关于如何可靠是网络浏览器的探险模式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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