1, text layout--font
Grammar:
body{font-family: "Microsoft Yahei";}
Be careful not to set fonts that are not commonly used, because the default font is displayed if the font you set is not installed on the user's local computer. (because the user can see that the font style you set depends on whether the font you set is installed on the user's local computer)
2, text layout--size, color
Grammar:
Body{font-size:12px;color: #666}
3, text layout--Bold
Grammar:
Tag name {font-weight:bold;}
4, text typesetting--italic
Grammar:
Tag name {font-style:italic;}
5, text layout--underline
Grammar:
Tag name {text-decoration:underline;}
6, Text layout-delete the line (that is, the price of how much, the previous prices on a solid line)
Grammar:
. (Note that there is a dot) tag name {Text-decoration:line-through;}
7, paragraph layout--indentation
Grammar:
Tag name {text-indent:2em;} Note: 2em means twice times the size of the text.
8, paragraph layout--line spacing (row height)
Grammar:
Tag name {line-height:2em;}
9, paragraph layout--text spacing, letter spacing
Grammar:
Set text and letter spacing with label name {letter-spacing:50px:}
Set the word spacing with the label name {word-spacing:50px;}
10, paragraph layout--alignment
Grammar:
Tag name {text-align:center;} Note: You can also set the left and right alignment, just change the center to leave.
CSS format layout