SOURCE

console 命令行工具 X clear

                    
>
console
<div id="main">
        <div id="div1"></div>
        <div id="div2"></div>
        <div id="div3"></div>
        <div id="div4"></div>
</div>
      #main {
            border: 1px solid black;    
            width: 200px;
            height: 300px;
            display: flex;
        }

        #div1 {
            flex-shrink:2;  
            width: 100px;
            height: 70px;
            background-color: pink;
        }

        #div2 {
            flex-shrink:1;
            width: 50px;
            height: 70px;
            background-color: orange;
        }

        #div3 {
            flex-shrink:1;
            width: 50px;
            height: 70px;
            background-color: green;
        }

        #div4 {
            flex-shrink:1;
            width: 50px;
            height: 70px;
            background-color: yellow;
        }