美文网首页
19.box-flex实现自适应页面内容均分

19.box-flex实现自适应页面内容均分

作者: jqClub | 来源:发表于2018-06-01 19:57 被阅读0次
 <div class="flex-box">
     <div style="background-color: #0ff">sssssssss</div>
     <div style="background-color: #0f0">ddddddddddddddddddddddddddddd</div>
     <div style="background-color: #f00">3</div>
 </div>
 <style type="text/css">
    .flex-box{
       display: -webkit-box;
       display: -moz-box;
       display: box;
       width: 60%;
       border:2px #000 solid;
     }
    .flex-box > div{
       height: 50px;
       width:1%;
       -webkit-box-flex:1 ;
       -moz-box-flex: 1;
       box-flex: 1;
       word-break: break-all;
    }
 </style>

相关文章

网友评论

      本文标题:19.box-flex实现自适应页面内容均分

      本文链接:https://www.haomeiwen.com/subject/ulnksftx.html