1
如何對齊紅色div的底部與類test
與右邊的底部?如何將div移動到父div的底部?
https://jsfiddle.net/1Lujdru9/
HTML
<div>
<div class="box">
<div>sad
<br/>sad
<br/>sad
<br/>
</div>
<div class="test">sad
<br/>sad
<br/>sad
<br/>
</div>
</div>
<div class="box">sad
<br/>sad
<br/>sad
<br/>sad
<br/>sad
<br/>sad
<br/>sad
<br/>sad
<br/>sad
<br/>sad
<br/>sad
<br/>
</div>
</div>
CSS
.box {
display:inline-block;
vertical-align:top;
}
.test {
background-color:red;
}