CSS之外层带背景内层左右模式:右侧内容高度自增

来源:互联网 发布:短地址生成算法 编辑:程序博客网 时间:2024/06/08 01:34
<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; 内层左侧和右侧都是最小高度自增即可!
1 0
原创粉丝点击