CSS text-decoration 屬性

來源:互聯網
上載者:User

標籤:over   script   not   log   asc   com   技術   java   obj   

定義和用法

text-decoration 屬性規定添加到文本的修飾。

注釋:修飾的顏色由 "color" 屬性設定。

說明

這個屬性允許對文本設定某種效果,如加底線。如果後代元素沒有自己的裝飾,祖先元素上設定的裝飾會“延伸”到後代元素中。不要求使用者代理程式支援 blink。

預設值: none
繼承性: no
版本: CSS1
JavaScript 文法: object.style.textDecoration="overline"
可能的值
描述
none 預設。定義標準的文本。
underline 定義文本下的一條線。
overline 定義文本上的一條線。
line-through 定義穿過文本下的一條線。
blink 定義閃爍的文本。
inherit 規定應該從父元素繼承 text-decoration 屬性的值。
執行個體

設定 h1、h2、h3、h4 元素的文本修飾:

h1 {text-decoration:overline}h2 {text-decoration:line-through}h3 {text-decoration:underline}h4 {text-decoration:blink}

CSS text-decoration 屬性

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.