flex 布局 盒子居中显示
display: flex;
justify-content: center;
align-items: center;
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.box {
width: 467px;
height: 377px;
border: 1px solid red;
margin: 150px auto;
display: flex;
justify-content: center;
align-items: center;
}
.one {
width: 177px;
height: 177px;
background-color: red;
}
</style>
</head>
<body>
<div class="box">
<div class="one"></div>
</div>
</body>
</html>