用CSS控制文本的樣式css
font-size font-size:<length>|<percentage>|<absolute-size>|<relative-size> font-size:12px; font-size:2em; font-size:200%;
font-family font-family:[<family-name>|<generic-family>]# <generic-family> = serif|sans-serif|cursive|fantasy|monospace font-family:arial; font-family:arial,Verdana,sans-serif; font-family:Verdana,"microsoft yahei"; font-family:"宋體",serif;
font-weight font-weight:normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900 font-weight:normal; font-weight:bold;
font-style font-style:normal|italic|oblique font-style:normal; font-style:italic;
line-height line-height:normal|<number>|<length>|<percentage> line-height:40px; line-height:3em; line-height:300%;/*先計算,後繼承*/ line-height:3;/*直接繼承*/
font font:[[<font-style>||<font-weight>]?<font-size>[/<line-height>]?<font-family>] font:30px/2 "Consolas",monospace; font:italic bold 20px/1.5 arial,serif; font:20px arial,serif; font:100px;/*錯誤:size和family是必須有的*/
color color:red; color:#ff0000; color:rgb(255,0,0); color:rgba(255,0,0,0.5);/*最後0.5是透明度*/
text-align text-align:left|right|center|justify text-align:left; text-align:right; text-align:center; text-align:justify;
vertical-align vertical-align:baseline|sub|super|top|text-top|middle|bottom|text-bottom|<percentage>|<length> vertical-align:middle; vertical-align:sub; vertical-align:super;
text-indent text-indent:<length>|<percentage> text-indent:2em;/*漢字經常使用*/ text-indent:10px; text-indent:20%;
white-space white-space:normal|nowrap|pre-wrap|pre-line white-space:pre-wrap;/*經常使用*/
word-wrap:normal|break-word word-break:normal|keep-all|break-all
text-shadow text-shadow:none|[<length>{2,3}&&<color>?]# text-shadow:1px 2px #f00; text-shadow:1px 2px 3px #f00; text-shadow:1px 2px 3px;
text-decoration text-decoration:none|[underline||overline||line-through] text-decoration:underline; text-decoration:underline overline;
text-overflow text-overflow:clip|ellipsis text-overflow:ellipsis;/*要配合後面兩個表達式一塊兒使用*/ overflow:hidden; white-space:nowrap;
cursor cursor:[<url>,]*[auto|default|none|help|pointer|zoom-in|zoom-out|move] cursor:pointer; cursor:url(xx.cur),pointer;
inherit font-size:inherit; font-family:inherit; font-weight:inherit; font-style:inherit; line-height:inherit; color:inherit; text-decoration:inherit; text-align:inherit; text-indent:inherit; white-space:inherit; word-wrap:inherit; word-break:inherit; text-shadow:inherit;