摘要: 针对不同的浏览器写不同的CSS code的过程,就叫CSS hack!1、!important随着IE7对!important的支持, !important 方法现在只针对IE6的HACK.(注意写法.记得该声明位置需要提前.) (另外必须在html开头加上doctype)2、*+html和*html *html只有IE6能认出来 *+html只有IE7能认出来 例如:#inn{ background-color:silver; } *+html #inn{ background-color:green; } *html #inn{ background... 阅读全文
posted @ 2012-09-20 16:42 wcp_spring 阅读(193) 评论(0) 推荐(0)