📅  最后修改于: 2022-03-11 14:57:54.629000             🧑  作者: Mango
html, body {
height: 100%;
}
.parent {
width: 100%;
height: 100%;
display: table;
text-align: center;
}
.parent > .child {
display: table-cell;
vertical-align: middle;
}