CSS_ font properties

1. fonts

font-family: "Font 1", "2 font", ......;
 / * left to right in the user's computer to select a font * /

2. Font Size

-size font: 100px;
 / * set the font size of 100 pixels * /

3. Font Color

/ * RGB notation: * / 
Color: RGB (125,45,199); 
/ * RGBA notation: a indicates transparency, range 0-1 * / 
Color: RGBA (255, 155, 55, 0.5); 
/ * hexadecimal notation * / 
Color: # 400080; 
/ * word notation * / 
Color: Blue;

4. Font Style

-style font: Italic;
 / * italics, the default is normal Normal
*/

5. font weight

weight-font: 900;
 / * set the font weight: value (default is 400) * / 
font-weight: Bolder; 
/ * set the font thickness: English (coarser default normal Normal ) * /

6. Text Properties

/ * Default: No effect * / 
text-Decoration: none; 
/ * underlined * / 
text-Decoration: underline; 
/ * streaked onto * / 
text-Decoration: overline; 
/ * Remove line * / 
text-Decoration: Line -through;

 

Guess you like

Origin www.cnblogs.com/wangdianchao/p/12505365.html