The comprehensive writing method of font attribute, the writing order is: font-style font-variant font-weight font-size font-family.
Example:
.ziti {font:italic normal bold 18px arial;}
If an attribute has a default value, you can omit it and the system will automatically parse it as the default value.
The value of font is a bit complicated. The value is mainly divided into two parts. Here are a few [ [
p { font:italic small-caps bold 12px/1.2em Arial; }
Recommended tutorial: css quick start
The above is the detailed content of Comprehensive writing method of font attribute. For more information, please follow other related articles on the PHP Chinese website!