1
2
3
4
5
.box {
display: flex;
align-items: center;/*垂直居中*/
justify-content: center;/*水平居中*/
}

转载请保持原始链接

原始链接: https://ru23.com/note/7db1780c.html