:fonts in CSS-Appreciation of masterpieces免费ppt模版下载-道格办公

fonts in CSS

ine-height, font-family For example: font: italic small-caps bold 12px/1.5 "Times New Roman", serif; This example sets the font style to italic, small caps, bold, and the font size is 12 pixels. The line height is 1.5 times the font size, the font family

font shorthand property sets all font properties in one declaration.

The order is: font-style, font-variant, font-weight, font-size/line-height, font-family

Among them: the values ​​of font-size and font-family are required. If other values ​​are missing, default values ​​will be inserted, if any.

Example:

span {
font: italic bold 12px< /span>/30px Georgia, serif;
}

font-style

Set font style

Parameters:

normal default value, browser display

italicItalic

oblique oblique

inherit inherits the font style of the parent element

span {
font-style: italic;
}

font-variant

lowercase to uppercase

Parameters:

normal default value

small-caps lowercase to uppercase

inherit inherits the parent element

font-weight

font weight

Parameters:

normaldefault

bold bold

bolder is bolder

lighter 100 - 900 where 400 is equal to normal and 700 is equal to bold

inherit inherits the parent element

font-size

font size

font-family

Define the font of an element

Articles are uploaded by users and are for non-commercial browsing only. Posted by: Lomu, please indicate the source: https://www.daogebangong.com/en/articles/detail/fonts%20in%20CSS.html

Like (810)
Reward 支付宝扫一扫 支付宝扫一扫
single-end

Related Suggestion