📅  最后修改于: 2022-03-11 14:48:56.508000             🧑  作者: Mango
代码示例1
.center{
margin: 0;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
}