【发布时间】:2017-08-24 23:42:06
【问题描述】:
我想在左边有一个 div,在右边有两个。 bottomright 应始终低于 topRight div。 topRight 是唯一一个高度可变的 div。
我目前正在尝试使用flexbox 来实现这一点,您可以在下面的代码中看到。
我想知道一些方向。
.wrapper {
display: flex;
height: 100px;
}
.left {
background-color: green
}
.topRight {
background-color: yellow
}
.bottomright {
background-color: red
}
<div class="wrapper">
<div class="left">Left</div>
<div class="topRight">TopRight</div>
<div class="bottomright">Bottom</div>
</div
【问题讨论】:
-
如果你包装 right div,这很容易解决为动态(没有固定高度)。这会是一个选择吗?