您现在的位置:首页 --> JavaScript --> IE的documentMode属性
IE的documentMode属性
浏览:1766次 出处信息
var p= document.documentMode;
浏览器 | IE6 | IE7 | IE8 | IE8 兼容模式 | IE9 | IE9 兼容模式 | IE10 | IE10 兼容模式 |
---|---|---|---|---|---|---|---|---|
document.documentMode | undefined | undefined | 8 | 7 | 9 | 7||8 | 10 | 7||8||9 |
if (document.compatMode == "CSS1Compat") { alert("Standards mode"); } else { alert("Quirks mode"); }
var ieMode=document.documentMode; var isIE=!!window.ActiveXObject; var isIE6=isIE&&!window.XMLHttpRequest; var isIE7=isIE&&!isIE6&&!ieMode||ieMode==7; var isIE8=isIE&&ieMode==8; var isIE9=isIE&&ieMode==9;
QQ技术交流群:445447336,欢迎加入!
扫一扫订阅我的微信号:IT技术博客大学习
扫一扫订阅我的微信号:IT技术博客大学习
<< 前一篇:匿名函数中undefined形参疑问
后一篇:浏览器的重绘[repaints]与重排[reflows] >>
文章信息
- 作者:愚人码头 来源: WEB前端开发
- 标签: documentMode
- 发布时间:2012-11-11 23:46:28
近3天十大热文
-
[84] memory prefetch浅析
-
[53] 基本排序算法的PHP实现
-
[51] 深入浅出cassandra 4 数据一致性问
-
[50] 转载:cassandra读写性能原理分析
-
[42] 字符引用和空白字符
-
[42] MySQL半同步存在的问题
-
[40] javascript插入样式
-
[40] Inline Form Labels
-
[38] 获取Dom元素的X/Y坐标
-
[38] JS中如何判断字符串类型的数字