解决flex布局space-between最后一行左对齐的方法(所有行列不同情况通用)
文章目录

<div class="work-list">
<div class="list" v-for="item in 11" :key="item" @click="$router.push('/dataList')">
</div>
</div>
.work-list {
display: flex;
justify-content: space-between;
flex-wrap: wrap;
flex-direction: row;
width: 1200px;
height: 290px;
&:after {
content: '';
** width: 332px;** //// 这个宽度为里面.listdediv的宽度
}
.list {
cursor: pointer;
font-size: 24px;
width: 332px;
height: 75px;
display: flex;
align-items: center;
}
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论