孩子应该如何position: relative
表现在父母的内心position: absolute
?
例如(JSFiddle):
<div style="position:relative; float:left; min-width:900px; max-width: 1400px; height:100%;">
<div style="position:absolute; top:0; right:0; width:200px; height:300px;">
<div style="position:relative; top:0; left:0; width:500px; height:100%;"></div>
</div>
</div>
当我将浏览器窗口缩小到最大宽度以下时,内部 div 会移到其父元素之外。这是正常的行为吗?