摘要:
li子元素浮动,li不浮动,如下情景ul>li*3>a[href="#" style="float:left"],在IE6/7下li会向下产生大约2px的外边距。解决方法:li{vertical-align:top/bottom;}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xm 阅读全文