技术教程 css文字居中怎么写 水平垂直分场景 css 文字居中分场景:水平用 text-align,单行垂直用 line-height,双向居中用 flex,块级元素用 margin auto。 技技术小编 2026-10-31 0 阅读 0 评论 css文字居中 css垂直居中 flex布局