您现在的位置:首页 --> JavaScript --> IE的documentMode属性
IE的documentMode属性
浏览:1718次 出处信息
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天十大热文
- [640] Go Reflect 性能
- [28] 正态分布的前世今生(一)
- [18] Linux Used内存到底哪里去了?
- [16] rsync同步的艺术
- [16] 基于HTTP缓存轻松实现客户端应用的离线支持
- [14] Linux内存中的Cache真的能被回收么?
- [14] 在JavaScript中什么时候使用==是正
- [13] 我的git笔记
- [13] Cuckoo Filter:设计与实现
- [12] 公钥私钥加密解密数字证书数字签名详解