What does this size mean in css {font: 14px/24px Arial, Helvetica, sans-serif}

后端 未结 3 1172
無奈伤痛
無奈伤痛 2020-12-25 11:44

What is 14px/24px here? Which is the real font size?

3条回答
  •  -上瘾入骨i
    2020-12-25 12:33

    First is font-size the second is line-height

    Quote from the specification for font shorthand

    'font'
    Value: [ [ <'font-style'> || <'font-variant'> || <'font-weight'> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'> ] | caption | icon | menu | message-box | small-caption | status-bar | inherit

提交回复
热议问题