我已经广泛搜索并看到了许多关于如何使用vertical-align
属性和line-height
属性来vertical-align
文本的例子。然而,我所有的努力似乎都没有结果,因为我无法让我的文字垂直对齐。我如何做垂直对齐文本居中?height
属性不固定,所以我不能使用line-height
。