清除浮动的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}
做个记号,下次好找!
static/image/common/sigline.gif
湖南卫视直播新还珠格格. :)来看看论坛:lol 牛啊,想不到的强帖
static/image/common/sigline.gif
http://img04.taobaocdn.com/imgextra/i4/38089305/T2Ai43XgxXXXXXXXXX_!!38089305.gif
页:
[1]