zoukankan      html  css  js  c++  java
  • 两列定宽,一列自适应布局

    利用flex实现

    .parent{
         display: flex;
    }
    .left,.center{
         width: 100px;
         border: 2px solid plum;
    }
    .right{
         flex: 1;
         border: 1px solid yellow;
    }

    利用float+margin实现

    .left,.center{
       width: 100px;
       float: left;
    }
    .right{
        margin-left: 200px;
    }

    利用float+overflow实现

    .left,.center{float:left;width:100px;}
    .right{overflow:hidden;}
  • 相关阅读:
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    【转】idea 用maven骨架生成项目速度慢的问题
  • 原文地址:https://www.cnblogs.com/wujiaqi/p/7850517.html
Copyright © 2011-2022 走看看