https://jsfiddle.net/zvdktc63/1/
藍色盒子=旋轉(zhuǎn)木馬 紅色=幻燈片
絕對位置div不向下推其他內(nèi)容。
高度:自動和最小高度:自動不適用于位置:絕對。
看起來最小高度和高度應(yīng)該自動工作,所以內(nèi)容將下推,同時添加位置:絕對。
<div class="parent">
<div class="child">
scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds scsd scds
</div>
</div>
<div class="next">
</div>
.child {
background: red;
position: relative;
}
.next {
background: blue;
height: 20px;
width: 20px;
}
.parent {
position: absolute;
word-wrap: break-word;
min-height: 30px;
}