国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

文字格式


文字顏色

#顏色屬性被用來設(shè)定文字的顏色。

顏色是透過CSS最常的指定:

  • 18- 如:?#FF0000

  • 一個(gè)RGB值- 如:?RGB(255,0,0)

  • 顏色的名稱- 如:?red


文字的對(duì)齊方式

文字排列屬性是用來設(shè)定文字的水平對(duì)齊方式。

文字可居中或?qū)R到左或右,兩端對(duì)齊.

當(dāng)text-align設(shè)定為"justify",每一行被展開為寬度相等,左,右外邊距是對(duì)齊(如雜誌和報(bào)紙)。


文字修飾

text-decoration 屬性用來設(shè)定或刪除文字的裝飾。

從設(shè)計(jì)的角度看text-decoration屬性主要是用來刪除連結(jié)的底線(右側(cè)實(shí)例),也可以這樣裝飾文字:

h1?{text-decoration:overline;}
h2?{text-decoration:line-through;}
h3?{text-decoration:underline;}

#效果圖:

1.jpg


文字轉(zhuǎn)換

#text-transform屬性是用來指定在一個(gè)文字中的大寫和小寫字母。

可用於所有字句變成大寫或小寫字母,或每個(gè)單字的首字母大寫。

範(fàn)例:

p.uppercase?{text-transform:uppercase;}/*?全部大寫*/
p.lowercase?{text-transform :lowercase;}/*?全部小寫*/
p.capitalize?{text-transform:capitalize;}/*?首字母大寫*/


#文字縮排

text-indent屬性是用來指定文字的第一行的縮排。

範(fàn)例:首行縮排50px

#p?{text-indent:50px;}

#
繼續(xù)學(xué)習(xí)
||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>php中文網(wǎng)(php.cn)</title> <style> h1 { text-align: center; text-transform: uppercase; color: #A7C942; } p { text-indent: 50px; text-align:justify; letter-spacing:3px; } a { text-decoration:none; } </style> </head> <body> <h1>text formatting</h1> <p>This text is styled with some of the text formatting properties. The heading uses the text-align, text-transform, and color properties. The paragraph is indented, aligned, and the space between characters is specified. The underline is removed from the <a target="_blank" href="#">"嘗試一下"</a> link.</p> </body> </html>
提交重置程式碼