js判断IE6(推荐方法一)

不得不使用判断的方法

//方法1:推荐 
if ( /MSIE 6/.test(navigator.userAgent)){

}
//方法2:
if ( navigator.appVersion.indexOf("MSIE 6")>-1){

}
//方法3:检查浏览器能力来判断是否是IE6
if ( !!window.ActiveXObject&&!window.XMLHttpRequest){

}
//方法4:在jQuery1.9中将完全移除该方法
if ($.browser.msie && ($.browser.version == "6.0") && !$.support.style) { 

} 
cssfirefly http://cssfirefly.cnblogs.com
原文地址:https://www.cnblogs.com/cssfirefly/p/3953021.html