From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/text-decoration-style/index.html | 115 ++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 files/ja/web/css/text-decoration-style/index.html (limited to 'files/ja/web/css/text-decoration-style') diff --git a/files/ja/web/css/text-decoration-style/index.html b/files/ja/web/css/text-decoration-style/index.html new file mode 100644 index 0000000000..5473f5af42 --- /dev/null +++ b/files/ja/web/css/text-decoration-style/index.html @@ -0,0 +1,115 @@ +--- +title: text-decoration-style +slug: Web/CSS/text-decoration-style +tags: + - CSS + - CSS テキスト装飾 + - CSS プロパティ + - Layout + - Reference + - レイアウト +translation_of: Web/CSS/text-decoration-style +--- +
{{CSSRef}}
+ +

CSStext-decoration-style プロパティは、 {{ cssxref("text-decoration-line") }} で指定された線の種類を設定します。線の種類はすべての線に適用され text-decoration-line で定義された線ごとに異なる種類を定義する方法はありません。

+ +
{{EmbedInteractiveExample("pages/css/text-decoration-style.html")}}
+ + + +

文字列を貫く線で文字列が削除されたことを示すように、指定された装飾が特定の意味を持つ場合は、 {{HTMLElement("del")}} や {{HTMLElement("s")}} といった HTML タグでその意味を示すことが推奨されます。ブラウザーはスタイルを無効にする場合がありますが、そのようなときでも意味論上の意味が失われません。

+ +

線の装飾に関する複数のプロパティを一度に設定するときは、代わりに一括指定の {{cssxref("text-decoration")}} プロパティを使用したほうが便利かもしれません。

+ +

構文

+ +
/* キーワード値 */
+text-decoration-style: solid;
+text-decoration-style: double;
+text-decoration-style: dotted;
+text-decoration-style: dashed;
+text-decoration-style: wavy;
+
+/* グローバル値 */
+text-decoration-style: inherit;
+text-decoration-style: initial;
+text-decoration-style: unset;
+
+ +

+ +
+
solid
+
単独線を描画します。
+
double
+
二重線を描画します。
+
dotted
+
点線を描画します。
+
dashed
+
破線を描画します。
+
wavy
+
波線を描画します。
+
-moz-none{{ non-standard_inline }}
+
線を描画しません。代わりに {{ cssxref("text-decoration-line") }}: none を使用してください。
+
+ +

形式文法

+ +
{{csssyntax}}
+ +

+ + + +
.wavy {
+  text-decoration-line: underline;
+  text-decoration-style: wavy;
+  text-decoration-color: red;
+}
+
+ +
<p class="wavy">This text has a wavy red line beneath it.</p>
+
+ +

{{ EmbedLiveSample('Examples', '', '', '') }}

+ +

仕様書

+ + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('CSS3 Text Decoration', '#text-decoration-style', 'text-decoration-style') }}{{ Spec2('CSS3 Text Decoration') }}初回定義。 {{cssxref("text-decoration")}} プロパティが複数の関連するプロパティを定義するための一括指定になりました。
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ + + +

{{Compat("css.properties.text-decoration-style")}}

+ +

関連情報

+ + -- cgit v1.2.3-54-g00ecf