只有浮动层子元素情况下,为了撑开父元素的框可以使用添加clear:both层的技巧(或者类似技巧如:after伪元素),或者设置overflow:hidden的方法。但是在IE6下还是可能无法显示。

 <div style="background-color:red;border:solid;height:1%">

            <div style="width:300px; height:100px; float:left;">

                左侧

            </div>

            <div style="width:300px; height:100px; float:left">

                中部

            </div>

            <div style="width:360px; height:100px; float:left">

                右侧

            </div>

            <div style="clear:both">

            </div>

        </div>

在IE6下需要添加额外css使背景色显示。