简体   繁体   English

本机IE9的行为不像IE11中的IE9

[英]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.

相关问题 从IE9浏览器模式中快捷方式运行IE11 - Run IE11 in IE9 browser mode from shortcut 边界半径导致IE9,IE10和IE11中的异常行为 - Border-radius causes weird behaviour in IE9, IE10 and IE11 IE9 IE 10 IE11 createNodeIterator-“发生异常。” - IE9 IE 10 IE11 createNodeIterator - “Exception occurred.” 如何获取IE11,IE10和IE9来运行各自的版本 - How to get IE11, IE10, and IE9 to run their respective versions chrome,firefox,ie11中的基本html代码功能,但不是ie9 - Basic html code functions in chrome, firefox, ie11, but NOT ie9 Javascript“切换器”功能不适用于IE9或IE10(IE8具有后备功能),但适用于IE11,Chrome,Firefox - Javascript “toggler” function not working in IE9 or IE10 (IE8 has a fallback in place) but working in IE11, Chrome, Firefox 对于所有ie浏览器ie11,ie10,ie9刷新后,字体真棒消失 - Font-awesome disappears after refresh for all ie browsers ie11,ie10,ie9 IE9本机模式是否与IE9标准模式相同 - Is IE9 native mode same as IE9 standards mode IE9 WebBrowser控件无法像IE9中那样呈现动画 - IE9 WebBrowser control does not render animations like in IE9 占位符IE9-Javascript未在IE9中执行 - Placeholder IE9 - Javascript not executed in IE9
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM