2010-11-18 45 views
10

將所有css字體屬性放入一個值的正確語法是什麼。所有css字體屬性的一個css聲明

body {font: 12px, arial, red} 

類似的東西,但與所有的選擇器和屬性。

+0

不錯的鏈接,但你在說什麼? – s84 2010-11-18 19:30:35

回答

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

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

+0

感謝您的回答。我正在尋找行高屬性的安裝位置,並且您的答案可以幫助我快速找到它。很有用。 – 2016-06-10 11:01:34