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

Comprehensive writing method of font attribute

王林
Release: 2020-05-09 09:40:10
Original
6047 people have browsed it

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;}
Copy after login

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 [ [ || || ] ? [ / ]? ] Examples of values ​​are as follows:

p
{
    font:italic small-caps bold 12px/1.2em Arial;
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template