水平垂直居中方法
绝对定位+平移translate适合在不确定盒子的高度和宽度的时候
.box {
position: absolute;
transform: translate(-50%, -50%)
2022-03-25