简体   繁体   中英

Internet Explorer 9 really version 7?

I am seeing some funky things with the version of IE on a user's system. 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 Code for browser data:

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

Why does it say that IE is version 7 instead of 9??

Thx!!

John

Your user has either "Intranet Settings" or "Compatibility View" enabled for your site.

Both of these IE features make IE8 and IE9 pretend to be 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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