最赞回答 / augushong
一般来讲在用代码做网页的时候,首先考虑页面样式的布局(这个地方是什么内容、那个地方是什么内容,心里有个样子,) 但不考虑样式的实现(不写任何代码);(就是说心里有个数,简单...
2015-12-31
已采纳回答 / moxao
<div class="parent"><div style="float:left;height:100px;">此时的parent高度为0,使用firebug可以看到。</div><!-- <div style="clear:both;height:0;overflow:hidden;"></div> 当存在这个div时parent的高度被撑开,当parent也存在浮动时parent的高度被撑开,或者使用clearfix:after定义...
2015-12-29