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

解决flex布局space-between最后一行左对齐的方法(所有行列不同情况通用)_第1张图片

  

.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;
    
  }

你可能感兴趣的:(flex)