这里的链接: 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