有以下代碼。高度是可變的,所以浮動對象的高度需要改變,但不會。除非我固定外部div的高度,否則它只與我放入的一樣高。我哪裏出了問題,我怎麼能把它做成整個高度而不固定高度?獲取裏面的浮動div到100%的高度
編輯:p標籤是浮動div的直接左邊所以它不可能是內部一個
<li>
<div style="height:(100% doesnt work, 100px does)>
<div style="float:right; width:20%; height:100%">
<div>
Something at the top of page
</div>
<div>
Something at the bottom of the page
</div>
</div>
<p>Other stuff to the left</p>
</div>
</li>