idty 发表于 2010-2-9 12:12:18

清除浮动的div类,里面display:none;这样写,还能清楚浮动吗?


<p ><strong>blockpoint</strong> 发表于 2010-2-4 09:46</p>
<h3>清除浮动的div类,里面display:none;这样写,还能清楚浮动吗?</h3>.clear{clear:both;display:none;}

<div class="clear"></div>

这样写还有用吗?谢谢<p ><strong>xxcss</strong> 发表于 2010-2-4 10:23</p>
不能<p ><strong>DellGrass</strong> 发表于 2010-2-4 10:35</p>
此元素都不存在了,还怎么帮忙清除别人?<p ><strong>preston</strong> 发表于 2010-2-4 15:34</p>
br {
line-height:0;
}

<br clear="all" />

清除浮动<p ><strong>33xiao</strong> 发表于 2010-2-4 15:51</p>
你问的这个问题无语的很。<p ><strong>blockpoint</strong> 发表于 2010-2-4 16:00</p>
那我这样也可以吧
div{clear:both;line-height:0;}<p ><strong>lyh6631791</strong> 发表于 2010-2-5 10:40</p>
.clear{width:100%; height:0px;clear:both;overflow:hidden}

rpxxu 发表于 2011-7-27 11:50:30

做个记号,下次好找!











static/image/common/sigline.gif
湖南卫视直播新还珠格格.

杨月进 发表于 2012-1-5 12:02:34

:)来看看论坛:lol

tdna 发表于 2012-1-8 12:23:56

牛啊,想不到的强帖











static/image/common/sigline.gif
http://img04.taobaocdn.com/imgextra/i4/38089305/T2Ai43XgxXXXXXXXXX_!!38089305.gif
页: [1]
查看完整版本: 清除浮动的div类,里面display:none;这样写,还能清楚浮动吗?