http://jsbin.com/adojes/edit#preview
我的问题是将“圆角”从jquery ui设置到主容器而不设置总高 - 这可能吗?
答案 0 :(得分:5)
在侧边栏后添加clear: both
换行符。示例:http://jsbin.com/adojes/2/edit#preview
<div id="main" class="ui-widget ui-widget-content ui-corner-all">
<div class="content ui-widget ui-widget-content ui-corner-all">
Content<br />Content<br />Content<br />
</div>
<div class="sidebar ui-widget ui-widget-content ui-corner-all">
Sidebar<br />Sidebar<br />Sidebar<br />
</div>
<br style='clear: both'/>
</div>