Skip to content
hotoo edited this page Jan 27, 2015 · 2 revisions

Internet Explorer

Windows 7, IE9

字段
ua Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
vendor undefined
vendorSub undefined
platform Win32
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 5.0 (compatible; MSIE 9.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
product undefined
productSub undefined
screenWidth 1237
screenHeight 727
colorDepth 24

Windows 7, IE9(兼 容模式)

字段
ua Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
vendor undefined
vendorSub undefined
platform Win32
external
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/5.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
product undefined
productSub undefined
screenWidth 1237
screenHeight 727
colorDepth 32

Windows 7, IE8.

字段
ua Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
vendor undefined
vendorSub undefined
platform Win32
external
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
product undefined
productSub undefined
screenWidth 1237
screenHeight 727
colorDepth 32

Windows 7, IE8(兼容模式).

字段
ua Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
vendor undefined
vendorSub undefined
platform Win32
external
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 4.0 (compatible; MSIE 7.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0)
product undefined
productSub undefined
screenWidth 1237
screenHeight 727
colorDepth 32

Windows XP, IE8.

字段
ua Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
vendor undefined
vendorSub undefined
platform Win32
external
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
product undefined
productSub undefined
screenWidth 1164
screenHeight 727
colorDepth 32

Windows XP, IE8(兼容模式).

字段
ua Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
vendor undefined
vendorSub undefined
platform Win32
external
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727)
product undefined
productSub undefined
screenWidth 1164
screenHeight 727
colorDepth 32

Windows XP, IE7.

字段
ua Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)
vendor undefined
vendorSub undefined
platform Win32
external
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)
product undefined
productSub undefined
screenWidth 1164
screenHeight 727
colorDepth 32

Windows XP, IE6.

字段
ua Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
vendor undefined
vendorSub undefined
platform Win32
external
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)
product undefined
productSub undefined
screenWidth 1164
screenHeight 727
colorDepth 32

Windows Phone, IE9.

字段
ua Mozilla/5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; SAMSUNG SGH-i917)
vendor undefined
vendorSub undefined
platform Win32
external {}
appCodeName Mozilla
appName Microsoft Internet Explorer
appVersion 5.0 (compatible; MSIE 9.0; Windows Phone OS 7.5; Trident/5.0; IEMobile/9.0; SAMSUNG SGH-i917)
product undefined
productSub undefined
screenWidth 480
screenHeight 800
colorDepth 16
documentMode 9
compatMode CSS1Compat

Windows Blue, IE 11

Mozilla/5.0 (IE 11.0; Windows NT 6.3; Trident/7.0; .NET4.0E; .NET4.0C; rv:11.0) like Gecko

兼容模式

  1. 收集客户端环境信息用于统计。 这种情况下,应该尽量返回真实的客户端信息:IE9 兼容模式下,浏览器应该仍然是 IE9。
  2. 判断客户端环境做兼容性处理。 这种情况下,IE9 应该识别位 IE7 或其 Trident 5 做相应降级。

实际浏览器兼容模式下,会修改 userAgent 信息来宣告浏览器信息,但是只是修改 userAgent 中的浏览器版本信息,内核版本保持不变。

但是实际浏览器是使用不同的渲染引擎,而不是浏览器。

// IE9
// http://beamnote.com/2010/site-pinning-of-ie9.html
//添加到开始菜单:window.external.msAddSiteMode;
//是否第一次使用Site Pinning:window.external.msIsSiteModeFirstRun;
//
//external.menuarguments
//window.external.msIsSiteMode()
//external.msSiteModeShowJumpList()
//external.msSiteModeClearJumpList()
//external.msSiteModeCreateJumpList()
//external.msSiteModeAddJumpListItem()

//IE10
//http://blogs.msdn.com/b/ie/archive/2012/03/02/web-platform-features-in-windows-consumer-preview.aspx
//ArrayBuffer
//http://www.khronos.org/registry/typedarray/specs/latest/
//http://msdn.microsoft.com/en-us/library/ie/br212485(v=vs.94).aspx
//https://developer.mozilla.org/en-US/docs/JavaScript/Typed_arrays
//http://blog.csdn.net/hfahe/article/details/7421203

延伸阅读

Clone this wiki locally