flex布局既想两端对齐又要最后一行左对齐

需要设置justify-content: space-between,同时在该元素上增加::after,亲测可行

.alr_k{

    display: flex;

    flex-wrap: wrap;

    flex-direction: row;

    justify-content: space-between;

}

.alr_k::after{

    content:"";

    display:block;

    width: 32%;

    height:0px;

}

你可能感兴趣的:(css,html,css3)