Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Web page technology CSS font properties of the abbreviation of the technique, abbreviated to reduce the code, optimize the CSS to make it more reasonable.
Optimization Code: web page Technology CSS font properties of the abbreviation of the skills, abbreviations to reduce the code, optimize the CSS to make it more reasonable.
The CSS Font property is used to control text font, color, size, and so on. There are many properties of font, and in general, we use abbreviations to generalize many attributes in a single CSS code. This greatly reduces the code and optimizes the CSS file.
The following six kinds of font properties are commonly used:
Font-style set oblique body such as: font-style:italic;
Font-weight set text thickness such as: font-weight:bold;
Font set text size such as: font-size:12px;
Line-height set line spacing such as: line-height:150%;
Color Set text colors (note is not font-color) such as: color:red;
Font-family set fonts such as: font-family: "Lucida Grande", Verdana, Lucida, Arial,
Helvetica, XXFarEastFont-Arial, serif;
The above attributes can be summed up in one line of the Font property. Note that the color attribute needs to be defined separately.
Font:italic bold 12px/150% "Lucida Grande", Verdana, Lucida, Arial, Helvetica, XXFarEastFont-Franklin, serif;
The above example uses a row to define the Font property, respectively: Font-style font-weight font line-height font-family;