<div id="flex">
<div id="left">我在
边,
定宽
</div> <div id="right">我在右边,自适应</div> </div>
#flex{
display: flex;
}
#left{
width: 200px;
}
#right{
background:green;
flex:1
}
<div id="flex">
<div id="left">我在
边,
定宽
</div> <div id="right">我在右边,自适应</div> </div>
#flex{
display: flex;
}
#left{
width: 200px;
}
#right{
background:green;
flex:1
}
转载于:https://www.cnblogs.com/FengWenQi/p/10395337.html