垂直水平居中两种实现方式:
.box{
width:200px;
height: 200px;
background: red;
position: absolute;
left:50%;
top:50%;
margin-left:-100px;
margin-top:-100px;
}
.box{
width:200px;
height: 200px;
background: blue;
position: absolute;
top:0;
bottom:0;
left:0;
right:0;
margin:auto;
}