0
我想,像這樣創造的東西頂:電網不同尺寸的正方形旁邊,和對彼此
我相信我開始了錯了,但我看不出怎麼回事,再加上我找不到任何幫助。到目前爲止我的代碼是:
<div class="container">
<div class="one">
one
</div>
<div class="two">
two
</div>
<div class="three">
three
</div>
<div class="four">
four
</div>
<div class="five">
five
</div>
<div class="six">
six
</div>
</div>
而CSS
.container {
background-color: blue;
display: flex;
}
.one {
height: 400px;
width: 30%;
background-color: red;
}
.two {
height: 250px;
width: 35%;
background-color: white;
}
.three {
height: 400px;
width: 35%;
background-color: lightblue;
}
的問題是,我不能得到下一組的div下正常排隊。 Jsfiddle
[創建與F A砌體電網lexbox(或其他CSS)](https://stackoverflow.com/questions/43901955/create-a-masonry-grid-with-flexbox-or-other-css) –
[Flex項目是否可以緊密對齊(https://stackoverflow.com/q/34480760/3597276) –
[使用flexbox(或其他CSS)創建砌體網格]的可能副本(https://stackoverflow.com/questions/43901955)/create-a-masonry-grid-with-flexbox-or-other-css) – Rob