One css declaration for all css font properties

前端 未结 3 1438
孤独总比滥情好
孤独总比滥情好 2021-02-04 09:40

What is the proper syntax for putting all css font properties into one value.

body {font: 12px, arial, red}

Something like that but with all th

3条回答
  •  伪装坚强ぢ
    2021-02-04 10:06

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

    Source: http://www.w3.org/TR/CSS2/fonts.html#font-shorthand

提交回复
热议问题