Posts Tagged ‘ie8’

27 05 2009

js判断ie8兼容模式

bigCat Posted in JavaScript - 0 Comment

// ie8兼容模式
if(YAHOO.env.ua.ie === 7 && document.documentMode === 7) {
fuckie();
}
javascript: alert(document.documentMode);

5 表示老版本IE的Quirks mode.
7 表示老版本IE的Strict mode.
8 表示IE8的标准模式 standards mode.

Host: (miao) | Word: Press | Code: bigCat | Valid: HTML5