text-decorationプロパティ
text-decorationプロパティは、アンダーラインや取り消し線などといったテキストに付ける線を一括で設定することができます。text-decoration-line、text-decoration-color、text-decoration-styleプロパティの一括設定ができます。
Syntax
text-decoration: text-decoration-line text-decoration-color text-decoration-style;
Values
value | 概要 |
text-decoration-line | テキストの付ける線で、アンダーラインや取り消し線などの設定です。リンク<a>エレメントのアンダーラインを付けない設定ができます。 |
text-decoration-color | text-decorationの色の設定です。主にアンダーラインや取り消し線の色を設定できます。 |
text-decoration-style | text-decorationの線種の設定です。実線や破線などを設定できます。 |
initial | 初期値に戻します。 |
inherit | 親エレメントから継承します。 |
Remarks(備考)
| |
Default value(初期値) | none currentcolor solid |
Inherited(継承) | no |
Animatable | no |
JavaScript syntax | object.style.textDecoration="_value_" |