About the css font style

1, determine the font attributes

  color: font color property values: word, in hex, rgb

2, font size

  font-size: 12px; property values ​​are whole numbers, not decimals, the unit is called a pixel px units; all the pixels makes up the picture we called a bitmap. Not by pixels makes up the figure we call the vector.

  Bitmap would obscure an enlarged, not to obscure the amplification vector.

3, font-family font family, font

  Property Value "Microsoft elegant black."

4, font-style font styles

  The default value of the standard normal font

  italic Italic

5, font-weight font weight

  Attribute value is above normal == 400 400 bold.

6, font-variant capitalized letters

  The default attribute value normal small-caps change to uppercase

note

  font shorthand property sets all the font properties in a statement.

  Property is set (in order): "font-style, font-variant, font-weight, font-size / line-height, font-family."

  font-size, and font-family values ​​is necessary. If less other value, default values ​​will be inserted, if there is a default value of words.

  

 

 

Guess you like

Origin www.cnblogs.com/zhangyuxinxin/p/11882787.html