- line-height (单行) - flex - display: table-cell; vertical-align: middle; - 绝对定位: 0 0 0 0; margin: auto; - 绝对定位 50% clac(50% - (width || height) / 2) - 绝对定位 50% 边距-1/2 - 绝对定位 50% transform: translate(-50%,-50%)
css — 2021年7月4日