效果图
css.flex-container {
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.flex-item {
width: 33%;
}
html
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
flex-container里加个align-content: space-around
再给个固定高度
justify-content:space-between;flex-flow:row wrap;