标签归档IE

兼容IE的阴影效果

吴阳 No Comments

filter:progid:DXImageTransform.Microsoft.Shadow(color=#909090,direction=120,strength=4);

工作记录–判断IE浏览器(最新)2015.11.10

吴阳 No Comments

var browser = navigator.appName;
var version = navigator.userAgent.split(“;”);//以分号划分字符串,让字符串形成数组
var trimVersion = version[1].replace(/[ ]/g,””);//数组索引为1的字符串里面把空格替换成空,就是去掉空格
// if(browser==”Microsoft Internet Explorer” && trimVersion==”MSIE7.0″){} //IE7
if(browser==”Microsoft Internet Explorer” && trimVersion==”MSIE8.0″){//IE8

}
else if(browser==”Microsoft Internet Explorer” && trimVersion==”MSIE9.0″){//IE9

}
else if(browser==”Microsoft Internet Explorer” && trimVersion==”MSIE10.0″){//IE10

}
else if(“ActiveXObject” in window){//IE11

}
else{//chrome firefox safari opera

}