开发者社区 问答 正文

怎么实现两边自适应,中间固定的三列布局

怎么实现两边自适应,中间固定的三列布局

展开
收起
a123456678 2016-03-26 14:27:20 2068 分享 版权
1 条回答
写回答
取消 提交回答
  • #container{
    height:500px;
    width: 1000px;
    }
    
    #left{
    float:left;
    background-color:red;
    height:100%;
    min-width:6px;
    }
    #center{
    float:left;
    background-color:yellow;
    height:100%;
    width:60px;
    }
    #right{
    float:left;
    background-color:blue;
    height:100%;
    min-width:6px;
    }
    left,center,right三个div包含在div container里面
    中间的div center确定宽度,左右两块自适应
    2019-07-17 19:16:11
    赞同 展开评论
问答地址: