orange is the parent element, and the pink one is the built-in child element
. The
the code is as follows
<head>
<style type="text/css">
.box{
display: inline-block;
background-color: orange;
}
.card{
width: 200px;
height: 200px;
margin: 10px;
background-color: pink;
display: inline-block;
}
</style>
</head>
<body>
<div class="box">
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
<div class="card"></div>
</div>
</body>
display:inline-block flex:wrap