一行三个元素
.big_box {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
width: 100%;
}
.gl_box {
width: 33%;
}
.gl_box:last-child:nth-child(3n-1) {
margin-right: calc(33.5%);
}
一行四个元素
.room {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
.roomList {
width: 24%;
height: 100px;
}
.roomList:last-child:nth-child(4n - 1) {
margin-right: calc(24% + 4% / 3);
}
.roomList:last-child:nth-child(4n - 2) {
margin-right: calc(48% + 8% / 3);
}
.roomList:last-child:nth-child(4n - 3) {
margin-right: calc(72% + 12% / 3);
}
}