【发布时间】:2018-10-02 18:35:59
【问题描述】:
我有以下代码:
.wrapper {
display: flex;
flex-direction: column;
flex-wrap: wrap;
}
.a {
background-color: red;
width: 65%;
}
.b {
background-color: green;
width: 35%;
}
.c {
background-color: blue;
width: 65%;
height: 100px;
}
.d {
background-color: orange;
width: 35%;
}
.e {
background-color: teal;
width: 65%;
}
.f {
background-color: purple;
width: 35%;
}
<div class="wrapper container">
<div class="a">A</div>
<div class="b">B</div>
<div class="c">C</div>
<div class="d">D</div>
<div class="e">E</div>
<div class="f">F</div>
</div>
我试图让 F 在 D 的正下方,像这样:
我这样做而不是 2 个单独的列的主要原因是因为我希望以后能够使用 order 在移动设备中排列这些列。这在 Flexbox 中是否可行,还是有其他方法?
【问题讨论】:
-
目前的html结构不可能,flexbox方式。