.wrapper { display: table; width: 100%; height: 300px; }
.cell { display: table-cell; vertical-align: middle; text-align: center; }
.container { display: flex; align-items: center; justify-content: center; height: 300px; }
.container { display: grid; place-items: center; height: 300px; }
.parent { position: relative; height: 300px; }
.child { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); }
.box { height: 100px; line-height: 100px; text-align: center; }
新專案預設 Flexbox,配合 @supports (display: grid) 漸進增強到 Grid;舊專案用 Absolute + Transform 保相容。