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/specified_value/index.html | 79 +++++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 files/ja/web/css/specified_value/index.html (limited to 'files/ja/web/css/specified_value/index.html') diff --git a/files/ja/web/css/specified_value/index.html b/files/ja/web/css/specified_value/index.html new file mode 100644 index 0000000000..81e1552aea --- /dev/null +++ b/files/ja/web/css/specified_value/index.html @@ -0,0 +1,79 @@ +--- +title: 指定値 +slug: Web/CSS/specified_value +tags: + - CSS + - Guide + - Reference +translation_of: Web/CSS/specified_value +--- +
{{CSSRef}}
+ +

指定値 (specified value) は、 CSS プロパティにおいて文書のスタイルシートから受け取る値です。指定されたプロパティの指定値は、以下の規則に従って決定されます。

+ +
    +
  1. 文書のスタイルシートが明示的にプロパティに値を指定した場合は、その値が使用されます。
  2. +
  3. 文書のスタイルシートが値を指定しなかった場合、可能であれば親要素から値を継承します。
  4. +
  5. 上記のいずれも利用できない場合、要素の初期値が使用されます。
  6. +
+ +

+ +

HTML

+ +
<p>My specified color is given explicitly in the CSS.</p>
+
+<div>The specified values of all my properties default to their
+    initial values, because none of them are given in the CSS.</div>
+
+<div class="fun">
+  <p>The specified value of my font family is not given explicitly
+      in the CSS, so it is inherited from my parent. However,
+      the border is not an inheriting property.</p>
+</div>
+ +

CSS

+ +
.fun {
+  border: 1px dotted pink;
+  font-family: fantasy;
+}
+
+p {
+  color: green;
+}
+
+ +

結果

+ +

{{EmbedLiveSample("Examples", 500, 220)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName("CSS2.2", "cascade.html#specified-value", "cascaded value")}}{{Spec2("CSS2.2")}}
{{SpecName("CSS2.1", "cascade.html#specified-value", "cascaded value")}}{{Spec2("CSS2.1")}}初回定義
+ +

関連情報

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