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

前端 未结 8 713
梦如初夏
梦如初夏 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条回答
  •  Happy的楠姐
    2020-12-11 17:33

    When you give an element a line-height of 100% (in your example, this equates to 100px), the text is placed in the middle vertically of a line that's 100px tall.

提交回复
热议问题