clearfloat {clear:both;height:0;font-size: 1px;line-height: 0px;}
然后在页面中需要清除浮动的地方加入:
<br class="clearfloat" /><!-- 用于清除浮动的元素 -->
clearfloat {clear:both;height:0;font-size: 1px;line-height: 0px;}
然后在页面中需要清除浮动的地方加入:
<br class="clearfloat" /><!-- 用于清除浮动的元素 -->
转载于:https://www.cnblogs.com/terrorpig/archive/2008/12/25/1362336.html