CSSテキスト装飾スタイルのプロパティ
例
さまざまな種類のテキスト装飾スタイルを設定します。
div.a
{
text-decoration-line: underline;
text-decoration-style: solid;
}
div.b
{
text-decoration-line: underline;
text-decoration-style: wavy;
}
div.c
{
text-decoration-line: underline;
text-decoration-style: double;
}
div.d
{
text-decoration-line: overline underline;
text-decoration-style: wavy;
}
定義と使用法
プロパティは、テキスト装飾のtext-decoration-style
スタイルを設定します(実線、波状、点線、破線、二重など)。
ヒント: text-decoration-line、text-decoration-style、およびtext-decoration-colorの省略形のプロパティで あるtext-decorationプロパティも確認してください。
デフォルト値: | 個体 |
---|---|
遺伝性の: | いいえ |
アニメート可能: | 番号。アニメート可能について読む |
バージョン: | CSS3 |
JavaScript構文: | オブジェクト.style.textDecorationStyle = "wavy" |
ブラウザのサポート
表の数字は、プロパティを完全にサポートする最初のブラウザバージョンを示しています。
数字の後に-moz-が続く場合は、プレフィックスを使用して機能した最初のバージョンを指定します。
Property | |||||
---|---|---|---|---|---|
text-decoration-style | 57.0 | 79.0 | 36.0 6.0 -moz- |
12.1 | 44.0 |
CSS構文
text-decoration-style: solid|double|dotted|dashed|wavy|initial|inherit;
プロパティ値
Value | Description | Play it |
---|---|---|
solid | Default value. The line will display as a single line | |
double | The line will display as a double line | |
dotted | The line will display as a dotted line | |
dashed | The line will display as a dashed line | |
wavy | The line will display as a wavy line | |
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リファレンス:textDecorationStyleプロパティ