要解决float造成的父元素塌陷问题就是要清楚浮动。
IE8 以上用 .clearfix:after {content: ''; display: table; clear: both;}
IE6、7 用 .clearfix {*zoom: 1;}
要解决float造成的父元素塌陷问题就是要清楚浮动。
IE8 以上用 .clearfix:after {content: ''; display: table; clear: both;}
IE6、7 用 .clearfix {*zoom: 1;}