- ie7 ie8 ie9 textarea placeholder (http://www.cnblogs.com/youngboy-front/p/7001655.html)
需要用span 標(biāo)簽做浮層 - JS 判斷IE的版本
var ua = navigator.userAgent;
if(ua.indexOf("MSIE")>0){
if(ua.indexOf("MSIE 6.0")>0){
alert("ie6");
}
if(ua.indexOf("MSIE 7.0")>0){
alert("ie7");
}
if(ua.indexOf("MSIE 8.0")>0 || (ua.indexOf("MSIE 9.0")>0 && !window.innerWidth)){
alert("ie8");
}
if(ua.indexOf("MSIE 9.0")>0){
alert("ie9");
}
}
- IE7 以下絕對定位被某元素遮擋 (http://blog.sina.com.cn/s/blog_648b3bb101016l6n.html)
編寫了position:relative后就要及時在后面設(shè)置z-index:0;
覆蓋層的父元素是relative 設(shè)置z-index 比被遮擋層 要大 - IE7 *background: red;
IE8 background:red \9;
IE6 _background: red;