css hack技巧
针对不同分辨率的浏览器和不同类型的浏览器,通常需要设置不同的css hack来实现,废话不多说,直接上代码
/*for moz*/
@-moz-document url-prefix(){
/* ok */
@media screen and (min-width: 992px){
}
@media screen and (min-width: 1240px){
}
/* ok */
@media screen and (min-width: 1360px) {
}
}
/*for webkit*/
@media (min-width: 768px) and (-webkit-min-device-pixel-ratio:0){
}
/*for ie*/@media screen (min-width: 768px){}