From 70942852ffa5e35aae179533ee7874afebde4840 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sat, 17 Apr 2021 00:29:38 +0900 Subject: Web/CSS/text-decoration を更新 (#400) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Web/CSS/text-decoration を更新 - 2021/03/16 時点の英語版に同期 * Web/CSS/text-decoration-thickness を新規翻訳 2021/03/16 の英語版に基づき新規翻訳 --- files/ja/web/css/text-decoration/index.html | 122 +++++++++++++++------------- 1 file changed, 67 insertions(+), 55 deletions(-) (limited to 'files/ja/web/css/text-decoration') diff --git a/files/ja/web/css/text-decoration/index.html b/files/ja/web/css/text-decoration/index.html index 79d0ccd4fb..8e77aba241 100644 --- a/files/ja/web/css/text-decoration/index.html +++ b/files/ja/web/css/text-decoration/index.html @@ -3,9 +3,10 @@ title: text-decoration slug: Web/CSS/text-decoration tags: - CSS - - CSS テキスト装飾 - - CSS プロパティ + - CSS Property + - CSS Text Decoration - Reference + - 'recipe:css-shorthand-property' - text-decoration - text-decoration-color - text-decoration-line @@ -18,32 +19,47 @@ translation_of: Web/CSS/text-decoration
{{EmbedInteractiveExample("pages/css/text-decoration.html")}}
- +

文字列の装飾は、子孫の文字列要素に適用されます。つまり、要素に文字列装飾が指定されれば、子要素では装飾を外すことができません。例えば、 <p>This text has <em>some emphasized words</em> in it.</p> というマークアップと、 p { text-decoration: underline; } のスタイル規則では、段落全体に下線が引かれます。 em { text-decoration: none; } のスタイル規則を適用しても変化せず、段落全体に下線が引かれたままになります。しかし、 em { text-decoration: overline; } の規則で "some emphasized words" に第二の装飾が施されます。

-

文字列装飾は、子孫の文字列要素に適用されます。つまり、要素に文字列装飾が指定されれば、子要素では装飾を外すことができません。例えば、 <p>This text has <em>some emphasized words</em> in it.</p> という文と、 p { text-decoration: underline; } のスタイル規則では、段落全体に下線が引かれます。 em { text-decoration: none; } のスタイル規則を適用しても変化せず、段落全体に下線が引かれたままになります。しかし、 em { text-decoration: overline; } の規則で "some emphasized words" に第二の装飾が施されます。

+

構成要素のプロパティ

-

構文

+

このプロパティは以下の CSS プロパティの一括指定です。

-

text-decoration プロパティは、個別指定の text-decoration プロパティを表す1つまたは複数の値を空白で区切って指定します。

+ + +

構文

-

+

text-decoration プロパティは、個別指定の text-decoration プロパティを表す 1 つまたは複数の値を空白で区切って指定します。

+ +

-
{{cssxref("text-decoration-line")}}
-
使用する装飾の種類を設定します。 underlineline-through などです。
-
{{cssxref("text-decoration-color")}}
-
装飾の色を設定します。
-
{{cssxref("text-decoration-style")}}
-
装飾に使用する線のスタイルを設定します。 solid, wavy, dashed などです。
-
{{cssxref("text-decoration-thickness")}}
-
装飾に使われる線の太さを設定します。
+
{{cssxref("text-decoration-line")}}
+
使用する装飾の種類を設定します。 underlineline-through などです。
+
{{cssxref("text-decoration-color")}}
+
装飾の色を設定します。
+
{{cssxref("text-decoration-style")}}
+
装飾に使用する線のスタイルを設定します。 solid, wavy, dashed などです。
+
{{cssxref("text-decoration-thickness")}}
+
装飾に使われる線の太さを設定します。
-

形式文法

+

公式定義

+ +

{{CSSInfo}}

+ +

形式文法

{{csssyntax}} -

+

+ +

text-decoration の値のデモ

.under {
   text-decoration: underline red;
@@ -89,51 +105,47 @@ translation_of: Web/CSS/text-decoration
 
 

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

-

仕様書

+

仕様書

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS4 Text Decoration')}}{{Spec2('CSS4 Text Decoration')}}{{cssxref("text-decoration-thickness")}} を追加。なお、これはまだ公式には一括指定の一部ではありません。これはまだ未定義です。
{{SpecName('CSS3 Text Decoration', '#text-decoration-property', 'text-decoration')}}{{Spec2('CSS3 Text Decoration')}}一括指定プロパティへ変更。 {{cssxref('text-decoration-style')}} の値への対応を追加。
{{SpecName('CSS2.1', 'text.html#lining-striking-props', 'text-decoration')}}{{Spec2('CSS2.1')}}実質的な変更なし。
{{SpecName('CSS1', '#text-decoration', 'text-decoration')}}{{Spec2('CSS1')}}初回定義
仕様書状態備考
{{SpecName('CSS4 Text Decoration')}}{{Spec2('CSS4 Text Decoration')}}{{cssxref("text-decoration-thickness")}} を追加。なお、これはまだ公式には一括指定の一部ではありません。これはまだ未定義です。
{{SpecName('CSS3 Text Decoration', '#text-decoration-property', 'text-decoration')}}{{Spec2('CSS3 Text Decoration')}}一括指定プロパティへ変更。 {{cssxref('text-decoration-style')}} の値への対応を追加。
{{SpecName('CSS2.1', 'text.html#lining-striking-props', 'text-decoration')}}{{Spec2('CSS2.1')}}実質的な変更なし。
{{SpecName('CSS1', '#text-decoration', 'text-decoration')}}{{Spec2('CSS1')}}初回定義
-

{{cssinfo}}

- -

ブラウザーの互換性

- - +

ブラウザーの互換性

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

-

関連情報

+

関連情報

-- cgit v1.2.3-54-g00ecf