CSStext -decoration-colorプロパティ
例
テキスト装飾の色を赤に設定します。
p
{
text-decoration: underline;
text-decoration-color: red;
}
定義と使用法
このtext-decoration-color
プロパティは、テキスト装飾の色(下線、上線、線引き)を指定します。
デフォルト値: | currentColor |
---|---|
遺伝性の: | いいえ |
アニメート可能: | はい。アニメート可能について読む |
バージョン: | CSS3 |
JavaScript構文: | オブジェクト.style.textDecorationColor = "red" |
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
数字の後に-moz-または-webkit-が続く場合は、プレフィックスを使用して機能した最初のバージョンを指定します。
Property | |||||
---|---|---|---|---|---|
text-decoration-color | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 7.1 -webkit- |
44.0 |
CSS構文
text-decoration-color: color|initial|inherit;
プロパティ値
Value | Description | Play it |
---|---|---|
color | Specifies the color of the text-decoration | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
関連ページ
CSSチュートリアル:CSSテキスト
HTML DOMリファレンス:textDecorationColorプロパティ