标签:div float htm 20px clear bsp html height logs
清除浮动之clear:both
CSS:
.border{
background: black;
}
.float{
width: 100px;
height: 100px;
background: red;
margin:20px 20px 20px 20px;
float: right;
}
.clear{
clear: both;
}
HTML:
<div class="border ">
<div class="float">
</div>
<div class="clear"></div>
</div>
标签:div float htm 20px clear bsp html height logs
原文地址:http://www.cnblogs.com/qing1304197382/p/5717529.html