1. 更好的清除浮动 /* For modern browsers */ .cf:before, .cf:after { content:""; display:table; } .cf:after { clear:both; } /* For IE 6/7 (triggers hasLayout) */ .cf { *zoom:1; } 2. 块元素注意事项 默认宽度占全行 宽度、行高都可控,宽度也可...