解决下面的层被浮动的层所覆盖,或者层里嵌套的子层超出了外层的范围

it2024-08-12  56

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

最新回复(0)