`
shuaigg.babysky
  • 浏览: 553772 次
  • 性别: Icon_minigender_1
  • 来自: 济南
社区版块
存档分类
最新评论

document.documentMode的值

阅读更多

除ie8以外的任何浏览器上返回的值是undefined.

 

ie8上面如果页面没有标准头的话,返回值为5。

 

ie8上面如果页面有标准头的话:

 

将返回7或者8,确定使用的是ie7渲染模式或者是ie8渲染模式。

 

 

 

分享到:
评论

相关推荐

    原创jQuery弹出层插件分享

    依赖jquery,兼容IE6\7\8 火狐 chrom 等主流浏览器(绝对原创), 不过请求大神帮我提升点效率。...-[ 1, ] || document.documentMode >= 9,//后面的是判断IE9、IE10的 ie6 : !-[ 1, ] && !window.XMLHttpRequest,

    用JS判别浏览器种类以及IE版本的几种方法小结

    document.documentMode; var isIE7=isIE&&!isIE6&&!isIE8; if (isIE){ if (isIE6){ alert(“ie6”); }else if (isIE8){ alert(“ie8”); }else if (isIE7){ alert(“ie7”); } } ————...

    js判断浏览器类型的方法

    document.documentMode; var isIE7=isIE&&!isIE6&&!isIE8; if (isIE){ if (isIE6){ alert(”ie6″); }else if (isIE8){ alert(”ie8″); }else if (isIE7){ alert(”ie7″);

    Java版水果管理系统源码-jsnote:前端笔记

    document.documentMode; // documentMode is an IE-only property var ie = /*@cc_on !@*/false; 数组传递和复制 var a = [1,2,3]; var b = a; delete b[1]; console.log(a); // [1, undefined, 3] var a = [4,5,6];...

    documentMode浅谈

    documentMode属性返回浏览器渲染当前文档所用的模式。 IE8可以以不同的模式渲染一个页面,主要依赖于!DOCTYPE或者当前的某一个HTML元素。

    jquery需要的所有js文件

    e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c...

Global site tag (gtag.js) - Google Analytics