html

父元素

.container {
display: flex;
flex-wrap: wrap;
}

子元素
.list {
width: 24%; height: 100px;
background-color: skyblue;
margin-top: 15px;
}
.list:not(:nth-child(4n)) {
margin-right: calc(4% / 3);
}

相关文章:

  • 2022-12-23
  • 2021-12-03
  • 2021-11-24
  • 2022-12-23
  • 2021-12-17
  • 2022-12-23
  • 2022-01-18
  • 2022-12-23
猜你喜欢
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-23
相关资源
相似解决方案