css 第二行的元素设置margin-top间隔
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
.container {
background-color: pink;
margin-top: 100px;
padding: 10px;
}
.box {
display: flex;
margin-top: -10px;
/* background-color: #f6f6f6; */
flex-wrap: wrap;
}
.box > div {
width: 200px;
height: 200px;
margin-top: 10px;
margin-right: 10px;
background-color: white;
border: 1px solid red;
}
</style>
<body>
<div class="container">
<div class="box">
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</body>
</html>