61,112
社区成员
发帖
与我相关
我的任务
分享
<style type="text/css">
.box{
width:100%;
height:100px;
background-color:#CCC;
/*定义和盒模型*/
display:-webkit-box;
}
.item{
margin:3px;
background-color:#999;
/*3列栏目为一个整体盒布局效果*/
box-sizing:border-box;
}
.item:nth-child(1){
width:200px;
}
.item:nth-child(2){
/*自适应大小*/
-webkit-box-flex:1;
}
.item:nth-child(3){
/*自适应大小*/
-webkit-box-flex:1;
}
</style>
这样子就解决了~