flex

56 阅读1分钟

flex想要子元素每个都占满一行

给flex父元素加 flex-direction: column;

.flex-container1 { height: 300px; width: 100%; display: flex; flex-direction: column; }

转自 blog.csdn.net/weixin_4294…