// css .flex { display: flex; width: 200px; height: 100px; } .left { flex: 3 2 50px; background: red; } .right { flex: 2 1 200px; background: blue; } // html <div class="flex"> <div class="left"></div> <div class="right"></div> </div>
// css .flex { display: flex; width: 200px; height: 100px; } .left { flex: 3 2 50px; background: red; } .right { flex: 2 1 200px; background: blue; } // html <div class="flex"> <div class="left"></div> <div class="right"></div> </div>
2:3
1:5
1:3
3:2