您现在的位置:首页 --> JavaScript --> IE的documentMode属性
IE的documentMode属性
浏览:1715次 出处信息
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天十大热文
- [380] Go Reflect 性能
- [13] [译]Google Chrome中的高性能网
- [11] 精于图片处理的10款jQuery插件
- [11] Linux Used内存到底哪里去了?
- [10] rsync同步的艺术
- [10] Mac下.apk的反编译
- [9] webapp网页调试工具Chrome Dev
- [8] Linux常用系统信息查看命令
- [8] jQuery性能优化指南
- [8] 如何成为Python高手