中文字幕一区二区人妻电影,亚洲av无码一区二区乱子伦as ,亚洲精品无码永久在线观看,亚洲成aⅴ人片久青草影院按摩,亚洲黑人巨大videos

text-decoration

實(shí)例

設(shè)置h1,h2,h3和h4元素文本裝飾:

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

運(yùn)行代碼 ?

屬性定義及使用說(shuō)明

text-decoration 屬性規(guī)定添加到文本的修飾,下劃線、上劃線、刪除線等。

text-decoration 屬性是以下三種屬性的簡(jiǎn)寫(xiě):

語(yǔ)法

/*關(guān)鍵值*/
text-decoration: none;                     /*沒(méi)有文本裝飾*/
text-decoration: underline red;            /*紅色下劃線*/
text-decoration: underline wavy red;       /*紅色波浪形下劃線*/

/*全局值*/
text-decoration: inherit;
text-decoration: initial;
text-decoration: unset;
默認(rèn)值: none
繼承: no
版本: CSS1
JavaScript 語(yǔ)法: object.style.textDecoration="overline"

瀏覽器支持

表格中的數(shù)字表示支持該屬性的第一個(gè)瀏覽器版本號(hào)。

屬性
text-decoration 1.0 3.0 1.0 1.0 3.5

屬性值

描述
none 默認(rèn)。定義標(biāo)準(zhǔn)的文本。
underline 定義文本下的一條線。
overline 定義文本上的一條線。
line-through 定義穿過(guò)文本下的一條線。
blink 定義閃爍的文本。
inherit 規(guī)定應(yīng)該從父元素繼承 text-decoration 屬性的值。

更多實(shí)例

實(shí)例

h1.under { text-decoration: underline; } h1.over { text-decoration: overline; } p.line { text-decoration: line-through; } p.blink { text-decoration: blink; } a.none { text-decoration: none; } p.underover { text-decoration: underline overline; }

運(yùn)行代碼 ?

實(shí)例

虛線與波浪線:

h1 { text-decoration: underline overline dotted red; } h2 { text-decoration: underline overline wavy blue; }

運(yùn)行代碼 ?

相關(guān)文章

CSS 教程: CSS 文本