父div高度不能自适应子div高度

来源:互联网 发布:知乎 欧美系护肤品 编辑:程序博客网 时间:2024/05/16 09:03

在子div中加入如下语句:

<div style="font: 0px/0px sans-serif;clear: both;display: block"> </div>  

<div style="height:1px; margin-top:-1px;clear:both;overflow:hidden;" />

<br style="clear:both;" />。

0 0