Individual stationmaster: The website optimizes code how to go doing

The skill of the abbreviate of the Font attribute of webpage technology CSS, abbreviate is helpful for reducing code, optimize CSS, those who make is more reasonable.

Optimize code: The skill of the abbreviate of the Font attribute of webpage technology CSS, abbreviate is helpful for reducing code, optimize CSS, those who make is more reasonable.

Css Font attribute is to use style of control written language, color, size to wait. And the attribute of Font has a variety of, connecting general reason condition to fall, we generalize a variety of attribute with the method of abbreviate in code of a Css. Such huge reduced code, optimize Css file.

Our commonly used Font attribute has below these 6 kinds:

Font-style set inclined system if: Font-style: Italic;

Degree of finish of Font-weight set character if: Font-weight: Bold;

Size of Font-size set character if: Font-size: 12px;

Line-height set row spacing if: Line-height: 150%;

Facial expression of Color set character (the attention is not Font-color) be like: Color: Red;

Font-family set font if: Font-family: Lucida Grande, verdana, lucida, arial,
Helvetica, body of the Song Dynasty, sans-serif;

Afore-mentioned attribute, we are OK and wraparound write in attribute of a Font. Those who need an attention is Color attribute we need alone definition.

Font: Italic Bold 12px/150% Lucida Grande, verdana, lucida, arial, helvetica, body of the Song Dynasty, sans-serif;}

The case above defines Font attribute with group, it is respectively: Font-style Font-weight Font-size Line-height Font-family; And need of facial expression of Color set character has a definition alone.