的右上角給出下面的HTML內DIV鎖定,以降低外部DIV
<div style="width: 500px; height: 500px; border: 1px solid red;">
<div style="width: 200px; height: 100px; border: 1px solid green; float: right; vertical-align: bottom;">
</div>
</div>
我想內div來鎖定到外div的右下角。爲了實現這一目標,我需要做什麼來實現CSS?
謝謝! 約翰
如果這有助於某人,使用這個SO問題,發佈了一個描述性的答案在這裏有點類似的問題http://stackoverflow.com/questions/22793879/how-to-set-a-divs-position-inside-another- div-to-bottom-right-corner/44024570#44024570 – prime 2017-05-17 12:17:55