Font attributes and text attributes

Selecting weights:
inline styles> id selector> selector class> element selector
1000> 100> 10> 1 never carry
inherited attributes his weight is very low, close to zero

! Important, can destroy selector weights, forced to make up the corresponding attribute weights

Font attributes: font-Family, font-size, font-style, font-weight
font-size: Google browser's default font size is 16px;

font-style: normal default represented, the Italic italic
font-weight: 100-900 used to represent the work, 400 represents normal;

Text attributes: Decoration-text, text-indent, Line-height, Letter-spacing, Word-spacing, text-align = left
text-Decoration: underlining underline, overline denotes overline, line-through represents a line passing through the
text-indent : 2em, paragraph indents showing two grid
line-height: 60px line indicates high, the distance between the line and row
letter-spacing: 20px represents the distance between the text and text (valid only for Chinese)
Word-spacing: 20px represents the distance between the text and text (only valid English)
text-align = left: center, right, left; in which the actual center of the most used, left is the default

Guess you like

Origin www.cnblogs.com/xdsuannai/p/12235790.html