左侧宽度固定,右边占满剩余宽度
<div class="ppp">
<div class="left">
A
div>
<div class="right">
B
div>
div>
.ppp {
display: flex;
flex-direction: row;
justify-content: space-between;
flex-wrap: nowrap;
overflow: hidden;
}
.left {
width: 300px;
flex-shrink: 0;
}
.right {
width: 100%;
}