<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.person {
position: relative;
width: 100%;
height: 600px;
background-color: brown;
}
.son1 {
position: absolute;
/* left: 750px; */
top: 50%;
left: 50%;
display: inline-block;
width: 400px;
height: 80px;
background-color: aqua;
/* 往回走移动盒子自身宽度的一半 */
transform: translate(-50%,-50%);
}
</style>
</head>
<body>
<div class="person">
<div class="son1">1</div>
</div>
</body>
</html>