类内部Hack:
IE6 识别下划线 _ 和 *
IE7 识别 * (不能识别 _ )
FF两个都不能识别
选择器Hack:
IE6能识别 *html
IE7能识别 *+html 或 *:first-child+html
HTML头部引用(if IE)Hack:
所有IE:<!--[if IE]><!--您的代码--><![endif]-->,
IE6及以下版本:<!--[if lt IE 7]><!--您的代码--><[endif]--> 这类Hack不仅对CSS生效,对写在判断语句里面的所有代码都 会生效。
万能的清楚CSS:
.clearfix:after { content:"."; display:block; height:0; clear:both; visibility:hidden; }
.clearfix { display:inline-block; }
/* Hide from IE Mac */
.clearfix {display:block;}
/* End hide from IE Mac */