结果如上图,代码如下
<div style="width: 500px;min-height: 200px;
background-color: #434055;">
<div style="height: 100%;width:100px;
background-color: #fff;">
</div>
</div>
在父div里只设置min-height:200px,height确实变成了200px;
然后可以看出子div的height:100%好像并没用使用父div的height高度。
给父div随便加个height:0;子div的100%就生效了。。。