【发布时间】:2017-05-07 15:46:07
【问题描述】:
我了解到 display flex 可以帮助我减少发布工作的时间。 但是我有一个问题是布局没有显示我想要的。
我想像下面的网格布局一样显示:
但不幸的是,我无法自己解决此问题。 你能给我一个建议,我该如何用 flex 标签解决这个问题?
你也可以看到我的问题如下:
这是我的代码:
.item_wrap {
display: flex;
justify-content: space-between;
flex-flow: row-wrap;
}
.item_0 {
width: 500px;
height: 500px;
background: #ff0;
}
.item_1 {
width: 490px;
height: 160px;
background: #00f;
}
.item_2 {
width: 240px;
height: 160px;
background: #ff00e4;
}
.item_3 {
width: 240px;
height: 160px;
background: #ff00e4;
}
.item_4 {
width: 240px;
height: 160px;
background: #1cc600;
}
.item_5 {
width: 240px;
height: 160px;
background: #1cc600;
}
【问题讨论】:
-
你能分享一下小提琴吗?