2011-03-01 65 views

回答

0

這裏有一個涉及絕對定位的解決方案。協調多個實體可能會非常棘手,但如果您需要精確的佈局,則它非常靈活。

<div style="position: relative; width: 300px; height: 300px;"> 
    <div style="position: absolute; background-color: red; width: 100px; height: 100px; left: 0px; top: 0px;">Top Left</div> 
    <div style="position: absolute; background-color: blue; width: 100px; height: 100px; right: 0px; bottom: 0px;">Bottom Right</div> 
</div> 

http://jsfiddle.net/UedkS/

+0

OMG THANK YOU SO MUCH !!!! – 2011-03-01 22:05:45

+0

非常感謝您 – 2011-03-01 22:06:39

相關問題