当我在下面的 div 中分配百分比高度时,为什么它会出来?提前谢谢你。
HTML:
<div id="div1">
    Test<br/>Test<br/>Test<br/>Test<br/>
    <div id="div2">Test</div>
</div>
CSS:
body{
    margin: 0     
}
#div1{
    position: absolute;
    width: 200px;
    height:100%;
    right: 0;
    background-color: #467
}
#div2{
    width: 50%;
    height: 99%;
    background-color: black;
    color: white
}