1、top:50%;left:50%;
transform:translate(-50%,-50%);
2、top:50%;left:50%;
margin-left:-宽度的一半;
margin-top:-高度的一半;