答案 0 :(得分:2)
您可以使用Flexbox
创建此类布局。
body, html {margin: 0; padding: 0;}
.content {
min-height: 100vh;
display: flex;
max-width: 800px;
margin: 0 auto;
}
.a, .c {
display: flex;
flex-direction: column;
flex: 1;
}
.box {
flex: 1;
}
.b {
flex: 2;
background: #CC6699;
}
.a .box:nth-child(1) {background: #FF9933;}
.a .box:nth-child(2) {background: #33CCFF;}
.c .box:nth-child(1) {background: #CCCCCC;}
.c .box:nth-child(2) {background: #33CC66;}
<div class="content">
<div class="a">
<div class="box"></div>
<div class="box"></div>
</div>
<div class="b"></div>
<div class="c">
<div class="box"></div>
<div class="box"></div>
</div>
</div>