<html>
<head>
<style>
.box {
width: 300px;
height: 200px;
background: green;
position: absolute;;
top: 0;
left: 0;
right: 0;
bottom: 0;
margin: auto;
}
</style>
</head>
<body>
<div class="box">我是合子</div>
</body>
</html>