Font size in CSS - % or em?

后端 未结 8 1846
走了就别回头了
走了就别回头了 2020-11-28 02:24

When setting the size of fonts in CSS, should I be using a percent value (%) or em? Can you explain the advantage?

8条回答
  •  臣服心动
    2020-11-28 02:55

    Yahoo User Interface library (http://developer.yahoo.com/yui/) has a nice set of base css classes used to "reset" the browser specific settings so that the basis for displaying the site is same for all (supported) browsers.

    With YUI one is supposed to use percentages.

提交回复
热议问题