CSS Font Sizing - Using “/”

后端 未结 2 961
温柔的废话
温柔的废话 2021-01-21 12:10

I\'ve seen sites with font-size:12px/2em (or similar) specified on the body.

What does this font sizing do exactly?

2条回答
  •  醉梦人生
    2021-01-21 12:42

    It's a shorthand for setting the font-size (12px) and the line-height (2em). Though, I didn't think you could do it on the font-size property, only on the font property.

提交回复
热议问题