总共两列, 左边一列:只有一个元素高100px, 右边一列:垂直两个元素, 各占50px
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.container {
display: flex;
}
.left-column {
flex: 0 0 100px;
background-color: lightblue;
}
.right-column {
flex: 1;
display: flex;
flex-direction: column;
}
.right-column div {
height: 50px;
background-color: lightgreen;
margin-bottom: 10px; /* 添加一些间距 */
}
</style>
</head>
<body>
<div class="container">
<div class="left-column"></div>
<div class="right-column">
<div></div>
<div></div>
</div>
</div>
</body>
</html>