Can the spacing of child elements extend automatically while I stretch the page.If I use justify-content: space-around
at the father element.The second line of the child elements's gap is not the same as the first line.Can it be automatic line break and automatically extend the spacing of child elements at the same time?
.contain {
display: flex;
flex-wrap: wrap;
// justify-content: space-around;
}
.contain div {
background: black;
width: 200px;
height: 200px;
margin: 10px;
}
<div class="contain">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div>