<div id="flex">
<div id="left">我在边,
定宽
</div> <div id="right">我在右边,自适应</div> </div>
#flex{
display: flex;
}
#left{
width: 200px;
}
#right{
background:green;
flex:1
}
2023-12-15 09:01:09
<div id="flex">
<div id="left">我在边,
定宽
</div> <div id="right">我在右边,自适应</div> </div>
#flex{
display: flex;
}
#left{
width: 200px;
}
#right{
background:green;
flex:1
}