CSS - Line height property, how it works (simple)

前端 未结 8 731
梦如初夏
梦如初夏 2020-12-11 16:49

So in this simple example I have as final result:

\"alt

This is a very simple question but I sim

8条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-11 17:30

    The simple answer is that with line-height the character will be in the vertical middle of the line, so a line with a height of 100px has the text in the middle of, thus 50px.

提交回复
热议问题