OptimizationCode: Tips for abbreviations of CSS font attributes
(From: http://www.webwoo.net/bc/bencandy-38-20144-1.htm)
Code optimization: the abbreviation of the font attribute of the web page technology CSS, which helps reduce code and optimize CSS to make it more reasonable.
The CSS font attribute is used to control the font, color, and size of text. There are many font attributes. In general, we use abbreviations to generalize multiple attributes into a CSS code. This greatly reduces code and optimizes CSS files.
The following six common font attributes are available:
Font-style: font-style: italic;
Font-weight: font-weight: bold;
Font-size: font-size: 12px;
Line-Height: 150%;
Color: Set the text color (note that it is not font-color) such as: Color: red;
Font-family: font-family: "lucida Grande", verdana, lucida, Arial, Helvetica,, sans-serif;
The above attributes can be summarized in a row of font attributes. Note that the color attribute needs to be defined separately.
Font: italic bold 12px/150% "lucida Grande", verdana, lucida, Arial, Helvetica,, sans-serif ;}
In the above example, the font attribute is defined by a row, namely: font-style font-weight font-size line-height font-family, and the color setting text color needs to be defined separately.