Change font size depending on resolution

后端 未结 5 1100
粉色の甜心
粉色の甜心 2021-01-30 23:57

I\'m developing a Web page that uses different sizes for its different paragraphs, h... and so on. I\'m using em sizes: font-size: 2em;, as an example. But when I

5条回答
  •  伪装坚强ぢ
    2021-01-31 00:58

    em sizes are relative to the size of the parent element. You probably want to set your font sizes in pt units (1pt = 1/72 inch), which are resolution-independent and designed to look the same apparent size in any resolution.

提交回复
热议问题