SOURCE

console 命令行工具 X clear

                    
>
console
<div class="outter">
    <div class="inner1">测试</div>
    <div class="inner2"></div>
</div>
.outter{
    width: 400px;
    height: 100px;
    display: flex;
    flex-direction: row;
    border: 1px red solid;
}
.inner1{
    flex: 0;
    height: 100%;
    border: 1px green solid;
}
.inner2{
    flex: 1;
    height: 100%;
    border:1px yellowgreen solid;
}