-1
我使用flex
來對齊我的元素。 #sentinels
是最外面的容器,每行div
(下面的示例中爲綠色)的類別爲line
。如何對齊列中的行柔性元素?
#sentinels {
display: flex;
flex-direction: column;
justify-content: space-around;
}
.line {
display: flex;
flex-direction: row;
justify-content: space-around;
}
這給
我想,但是,有在列排列的div
:
就是這樣一個可以與設置flex
?
是否有可能更新html代碼? –
@MostafaBaezid:是的,但是行數不知道 – WoJ
僅用於測試運行。像你的圖片 –