gpt4 book ai didi

css - 防止在显示 : flex 时出现空白

转载 作者:行者123 更新时间:2023-12-05 08:49:18 25 4
gpt4 key购买 nike

<分区>

对于这种情况,我希望“第四个任务”位于“第一个任务”之下。我应该怎么做才能实现这一目标?谢谢。

<div class="list">
<div class="card"><h5>First Task</h5></div>
<div class="card"><h5>Second Task</h5></div>
<div class="card"><h5>Third Task</h5></div>
<div class="card"><h5>Fourth Task</h5></div>
</div>

.list {
width: 600px;
height: 400px;
background-color: yellow;
display: flex;
flex-wrap: wrap;
}

.card {
background-color: blue;
border: solid black 2px;
flex: 0 0 185px;
height: 69px;
}

https://jsfiddle.net/3avqjx1e/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com