效果:
代码文章来源地址https://www.toymoban.com/news/detail-675056.html
<div class="co-middle">
<div class="img-btn">
<img src="../../../assets/images/ml5DisSelect/blueBtn.png" alt="" />
<div class="img-title oneBtn">Pre Task Dispatch</div>
</div>
<div class="img-btn">
<img src="../../../assets/images/ml5DisSelect/qBlueBtn.png" alt="" />
<div class="img-title twoBtn">Line Prep DispatchH</div>
</div>
<div class="img-btn">
<img src="../../../assets/images/ml5DisSelect/poBtn.png" alt="" />
<div class="img-title threeBtn">Outside Shelf Dispatch</div>
</div>
<div class="img-btn">
<img src="../../../assets/images/ml5DisSelect/greenBtn.png" alt="" />
<div class="img-title fourBtn">Warehouse Dispatch</div>
</div>
<div class="img-btn">
<img src="../../../assets/images/ml5DisSelect/sBlueBtn.png" alt="" />
<div class="img-title fiveBtn">NPI Dispatch</div>
</div>
</div>
<style>
.co-middle {
display: flex;
flex-wrap: wrap
clear: both;
margin: 25px;
;
}
.img-btn {
margin-bottom: 20px;
width: 33.33%;
}
</style>
文章来源:https://www.toymoban.com/news/detail-675056.html
到了这里,关于flex布局一行三个,显示多行的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!