Are there any practical reasons to use “em” instead of “pt” font size units?

后端 未结 7 1508
南笙
南笙 2020-12-08 11:19

One CSS rule I have learned is that you should use the relative \"em\" font-size unit instead of the absolute \"pt\". The general idea is to set the font-size in your body t

7条回答
  •  不思量自难忘°
    2020-12-08 11:57

    px : changes with your screen resolution and other dependent issues

    em : irrespective of your screen resolution, it will be same for all

提交回复
热议问题