CSS Font Sizing - Using “/”

后端 未结 2 962
温柔的废话
温柔的废话 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.

    0 讨论(0)
  • 2021-01-21 12:59

    12px is the font size and 2em is the line-height.

    0 讨论(0)
提交回复
热议问题