Home  >  Article  >  Web Front-end  >  Comprehensive writing method of font attribute

Comprehensive writing method of font attribute

王林
王林Original
2020-05-09 09:40:105994browse

Comprehensive writing method of font attribute

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 [ [ a75eb35805abf862d22ba51b268f1d10 || 1f642cbaf8fc9c26cb404baa184a703e || 07d71549b7f18764a1c449677379d20d ] ? fec6596e03e0090534d396441156a3cf [ / e9494117c885e308321ec26ba37743ba ]? 63c25425db47f88e5e9861f11b1b4724 ] Examples of values ​​are as follows:

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn