<div style="margin: 0 auto; width:1000px; overflow:hidden; background:#FFFFFF;">
<div style="width:240px; min-height:600px; height:auto !important; height:600px; float:left;">
左侧导航
</div>
<div style="width:760px; min-height:600px; height:auto !important; height:600px; float:right;">
右侧内容
</div>
</div>
需要注意的是:最外层即父层设置:高度不要了加 overflow:hidden; 内层左侧和右侧都是最小高度自增即可!
<div style="width:240px; min-height:600px; height:auto !important; height:600px; float:left;">
左侧导航
</div>
<div style="width:760px; min-height:600px; height:auto !important; height:600px; float:right;">
右侧内容
</div>
</div>
需要注意的是:最外层即父层设置:高度不要了加 overflow:hidden; 内层左侧和右侧都是最小高度自增即可!
本文介绍了一种网页布局方法,利用父层的 overflow:hidden 属性配合内层左右两侧的自适应最小高度实现灵活的页面布局。
1099

被折叠的 条评论
为什么被折叠?



