.title{ font-size: 40px; text-align: center; height: 100%; } .title::before{ display: inline-block; content: ""; height: 100%; vertical-align: middle; }
syc5 2022-02-16 10:06 原文
.title{ font-size: 40px; text-align: center; height: 100%; } .title::before{ display: inline-block; content: ""; height: 100%; vertical-align: middle; }