How is an em calculated?

后端 未结 3 1040
独厮守ぢ
独厮守ぢ 2021-01-01 21:35

I have noticed that you can use 1em and it will look different on different sites.

What is an em in proportion to?

  • The font used?
  • The bigges
3条回答
  •  一个人的身影
    2021-01-01 22:11

    The em is defined as the height of the capital letter "M" in the current font and size.

    https://web.archive.org/web/20131127083352/http://www.guistuff.com/css/css_units.html

提交回复
热议问题