Home > Web Front-end > HTML Tutorial > CSS中font属性的注意事项_html/css_WEB-ITnose

CSS中font属性的注意事项_html/css_WEB-ITnose

WBOY
Release: 2016-06-21 09:19:41
Original
1404 people have browsed it

font包含font-style font-variant font-weight font-size/line-height font-family;

在书写font属性时font-style font-variant font-weight 在前,且顺序可以随意排列;font-size/line-height font-family在后,且顺序是固定的;而且font属性的声明中必须要包含font-size font-family这两个属性,否则,整个声明都是无效的。

在使用font声明时,会重置font-style font-variant font-weight font-size/line-height font-family为默认值。

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