CSS--文字屬性

來源:互聯網
上載者:User

標籤:ora   word   刪除線   one   pac   屬性   文本   through   css   

font-size 文本的大小 例如:font-size:12px

font-weight 文本是否加粗 例如:font-weight:bold//normal(加粗//正常)

font-style 文本是否傾斜 例如:font-style:italic//normal(傾斜//正常)

font-family 文本的字型 例如:font-family:隸書(預設是宋體)

text-decoration 文本是否有線條 例如:text-decoration:underline//overline//linethrough//none(底線//上劃線//刪除線//無線條)

text-indent 文本首行縮排 例如:text-indent:2em 首行縮排兩個字元

color:字型顏色 例如:color:red

letter-spacing 字母與字母之間的距離 例如:letter:spacing:2px

word-spacing 單詞與單詞之間的距離 例如:word-spacing:2px

text-align 文本的對齊 例如:text-align:left//center//right(靠左對齊//置中//靠右對齊)

CSS--文字屬性

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.