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/initial/index.html | 81 +++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 files/ja/web/css/initial/index.html (limited to 'files/ja/web/css/initial') diff --git a/files/ja/web/css/initial/index.html b/files/ja/web/css/initial/index.html new file mode 100644 index 0000000000..0b51d7bd17 --- /dev/null +++ b/files/ja/web/css/initial/index.html @@ -0,0 +1,81 @@ +--- +title: initial +slug: Web/CSS/initial +tags: + - CSS + - CSS カスケードと継承 + - CSS 値 + - Reference + - initial + - レイアウト + - 初期値 +translation_of: Web/CSS/initial +--- +
{{CSSRef}}
+ +

initial は CSS のキーワードで、要素にプロパティの初期値 (または既定値) を設定します。どの CSS プロパティにも適用できます。これは CSS の一括指定 {{cssxref("all")}} を含み、 initial を指定して、すべての CSS プロパティを初期値に戻すために使用することができます。

+ +
+

注: 継承プロパティでは、初期値は期待されない値かもしれません。代わりに {{cssxref("inherit")}}, {{cssxref("unset")}}, {{cssxref("revert")}} キーワードを使用することを検討してください。

+
+ +

+ +

HTML

+ +
<p>
+  <span>このテキストは赤です。</span>
+  <em>このテキストは初期値 (ふつうは黒) です。</em>
+  <span>これは再び赤です。</span>
+</p>
+ +

CSS

+ +
p {
+  color: red;
+}
+
+em {
+  color: initial;
+}
+ +

{{EmbedLiveSample('Example')}}

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('CSS4 Cascade', '#initial', 'initial') }}{{Spec2('CSS4 Cascade')}}Level 3 から変更なし。
{{ SpecName('CSS3 Cascade', '#initial', 'initial') }}{{Spec2('CSS3 Cascade')}}初回定義
+ +

ブラウザーの互換性

+ + + +

{{Compat("css.types.global_keywords.initial")}}

+ +

関連情報

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