简体   繁体   English

Internet Explorer 9真的是7版吗?

[英]Internet Explorer 9 really version 7?

I am seeing some funky things with the version of IE on a user's system. 我在用户系统上看到IE版本的一些时髦的东西。 My perl cgi app says the version is 'MSIE 7' and when you click on help,about in the web browser, it says it's MSIE 9. 我的perl cgi应用程序说版本是'MSIE 7',当你点击帮助时,在网络浏览器中,它说它是MSIE 9。

Perl Code for browser data: 浏览器数据的Perl代码:

my $browser_data = $ENV{'HTTP_USER_AGENT'}; 我的$ browser_data = $ ENV {'HTTP_USER_AGENT'};

Why does it say that IE is version 7 instead of 9?? 为什么说IE是版本7而不是9?

Thx!! 谢谢!!

John 约翰

Your user has either "Intranet Settings" or "Compatibility View" enabled for your site. 您的用户已为您的站点启用了“Intranet设置”或“兼容性视图”。

Both of these IE features make IE8 and IE9 pretend to be IE7. 这两个IE功能都使IE8和IE9假装成IE7。

You can tell it's lying, and derive the real version, from the presence of Trident in the User-Agent string - see Understanding user-agent strings on MSDN. 你可以告诉它说谎,并从User-Agent字符串中Trident的存在派生真实版本 - 请参阅了解 MSDN上的用户代理字符串

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM