[英]Native IE9 not behaving like IE9 in IE11
What is the best way to find out my browser is "Native IE9 (Only IE9 installed, not changed document mode from IE11 to IE9)". 找出我的浏览器的最佳方法是“本机IE9(仅安装IE9,未将文档模式从IE11更改为IE9)”。
SCENARIO: I have two machines, both are having Windows7 OS. 场景:我有两台机器,都装有Windows7 OS。 But, one machine has Native IE9, other machine has IE11.
但是,一台计算机具有本机IE9,另一台计算机具有IE11。 My testing team raised an issue out of these browsers.
我的测试团队从这些浏览器中提出了一个问题。
ISSUE: Native IE9 not behaving like IE9 changed mode from IE11 to IE9. 问题:本机IE9的行为不像IE9,将模式从IE11更改为IE9。
EXPECTED: Would like to know how to detect Native IE9 browser. 预期:想知道如何检测本机IE9浏览器。
I hesitate to say this (as I don't believe the answer will help you much in the long run), but you can use the Trident token of the user-agent string to determine the version of IE that's actually running. 我犹豫地说(因为从长远来看,我不认为答案会为您带来很大帮助),但是您可以使用用户代理字符串的Trident令牌来确定实际运行的IE版本。
This is a dangerous practice , one that will likely get more complex as time goes on. 这是一种危险的做法 ,随着时间的流逝,这种做法可能会变得更加复杂 。
Perhaps a better question is to ask why you need to distinguish between versions? 也许更好的问题是问您为什么需要区分版本? For troubleshooting purposes, you can use the F12 tools to investigate individual cases.
为了进行故障排除,您可以使用F12工具调查个别情况。
You didn't indicate what sort of behavioral differences you're seeing between the two machines. 您没有指出两台计算机之间的行为差异。 As a result, it's hard to recommend more appropriate alternatives.
结果,很难推荐更合适的替代方案。 You may find the IE Compatibility Cookbook helpful, as it outlines some of the major changes in recent versions of IE (as well as a few of the minor ones ).
您可能会发现《 IE兼容性手册》很有用,因为它概述了IE的最新版本中的一些主要更改 (以及一些次要的 更改 )。
Hope this helps... 希望这可以帮助...
-- Lance -兰斯
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.