這裏的鏈接: http://www.whiterootmedia.com/homepage_layout_test/浮動權問題
下面的代碼:
<body>
<div class="site" style="background:yellow; ">
<div class="banner" style="background:blue; height:100px; width:417px; float:left;">Banner Banner Banner Banner Banner </div>
<div class="ads" style="background:green; height:800px; width:160px; float:right;">Ads Ads Ads Ads Ads Ads Ads Ads Ads </div>
<div class="tree" style="background:orange; height:400px; width:auto; min-width:417px; clear:left;">Tree Tree Tree Tree Tree Tree </div>
</div>
</body>
我想綠色格留沿頂,橙色的div內容不走綠色DIV背後,橙色div的最小寬度爲417px。預先感謝您提供的任何幫助!
塵埃
重新更新,更簡單的修復。 – chris