What is an “em” if the font-size of the document is specified in ems?

后端 未结 3 781
庸人自扰
庸人自扰 2020-12-06 11:32

In CSS, an em is a relative unit based on the font-size of the document. So, what exactly is an em then, if the font-size of the document itse

3条回答
  •  独厮守ぢ
    2020-12-06 12:06

    It will take the browsers' default value of 16px if no parent element has defined it.

    Also see this: http://pxtoem.com/

提交回复
热议问题