User-Agent
IE7 on XP: Mozilla/4.0 (compatible;MSIE 7.0; Windows NT 5.1)
IE8 on Windows Vista : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0)
IE8 on Windows Vista (Compatibility View): Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; Trident/4.0)
IE9 on Windows 7: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0)
IE9 on Windows 7(Compatibility View): Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0;Trident/5.0)
区别在于 IE7 没有Trident , IE8 Trident/4.0, IE9 Trident/5.0