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

后端 未结 3 786
庸人自扰
庸人自扰 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:02

    It'll be relative to whatever the browser's default font-size is, which WILL be specified in a physical size, e.g. '10pt'.

提交回复
热议问题