<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
}