设置了每个卡片的宽度使33% 然后设置了justify-content: space-between 但是只有2条数据的情况下出现了图片中的情况。请问我要怎么设置才能让右边的卡片左移。
justify-content: space-evenly;
第一种:多添加一个空元素。
第二种:给外层添加伪元素:
.wrap:after {
content: '';
width: 33%;
}
justify-content: space-between就是两边对齐的意思justify-content:flex-start就行