height
is the vertical measurement of the container.
line-height
is the distance from the top of the first line of text to the top
of the second.
If used with only one line of text I'd expect them to produce similar results in most cases.
I use height
when I want to explicitly set the container size and line-height
for typographic layout, where it might be relevant if the user resizes the text.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…