From f7c2a316bb9e875683a9e81fb6aef8d1fc133a38 Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 14 Nov 2021 11:00:39 +0900 Subject: CSS Borders に関するプロパティの文書の変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/border-top/index.html | 137 --------------------------------- files/ja/web/css/border-top/index.md | 137 +++++++++++++++++++++++++++++++++ 2 files changed, 137 insertions(+), 137 deletions(-) delete mode 100644 files/ja/web/css/border-top/index.html create mode 100644 files/ja/web/css/border-top/index.md (limited to 'files/ja/web/css/border-top') diff --git a/files/ja/web/css/border-top/index.html b/files/ja/web/css/border-top/index.html deleted file mode 100644 index 2b5ce0aaa7..0000000000 --- a/files/ja/web/css/border-top/index.html +++ /dev/null @@ -1,137 +0,0 @@ ---- -title: border-top -slug: Web/CSS/border-top -tags: - - CSS - - CSS Borders - - CSS Property - - Reference - - 'recipe:css-shorthand-property' -translation_of: Web/CSS/border-top ---- -
{{CSSRef}}
- -

border-top一括指定CSS のプロパティで、要素の上側の境界のプロパティをすべて設定します。

- -
{{EmbedInteractiveExample("pages/css/border-top.html")}}
- - - -

他の一括指定プロパティと同様に、 border-top は、一部の値が指定されていなくても、設定可能なプロパティをすべて設定します。指定されていないプロパティは既定値が設定されます。つまり・・・

- -
border-top-style: dotted;
-border-top: thick green;
-
- -

・・・は、実際には以下と同じです・・・

- -
border-top-style: dotted;
-border-top: none thick green;
-
- -

・・・そして、 border-top の前で設定された {{cssxref("border-top-style")}} の値は無視されます。 {{cssxref("border-top-style")}} の既定値は none なので、 border-style の部分の設定は境界線なしとなります。

- -

構成要素のプロパティ

- -

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

- - - -

構文

- -
border-top: 1px;
-border-top: 2px dotted;
-border-top: medium dashed green;
-
- -

一括指定プロパティの3つの値は任意の順序で指定可能で、また、1つまたは2つの値を省略することができます。

- -

- -
-
<br-width>
-
{{cssxref("border-top-width")}} を参照してください。
-
<br-style>
-
{{cssxref("border-top-style")}} を参照してください。
-
{{cssxref("<color>")}}
-
{{cssxref("border-top-color")}} を参照してください。
-
- -

公式定義

- -

{{CSSInfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

上側の境界の適用

- -

HTML

- -
<div>
-  このボックスには上側に境界線があります。
-</div>
- -

CSS

- -
div {
-  border-top: 4px dashed blue;
-  background-color: gold;
-  height: 100px;
-  width: 100px;
-  font-weight: bold;
-  text-align: center;
-}
-
- -

結果

- -

{{EmbedLiveSample('Applying_a_top_border')}}

- -

仕様書

- - - - - - - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Backgrounds', '#propdef-border-top', 'border-top')}}{{Spec2('CSS3 Backgrounds')}}直接的な変更はないが、 {{cssxref("border-top-color")}} に適用される値が変更された。
{{SpecName('CSS2.1', 'box.html#propdef-border-top', 'border-top')}}{{Spec2('CSS2.1')}}有意な変更点なし。
{{SpecName('CSS1', '#border-top', 'border-top')}}{{Spec2('CSS1')}}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.border-top")}}

- -

関連情報

- - diff --git a/files/ja/web/css/border-top/index.md b/files/ja/web/css/border-top/index.md new file mode 100644 index 0000000000..2b5ce0aaa7 --- /dev/null +++ b/files/ja/web/css/border-top/index.md @@ -0,0 +1,137 @@ +--- +title: border-top +slug: Web/CSS/border-top +tags: + - CSS + - CSS Borders + - CSS Property + - Reference + - 'recipe:css-shorthand-property' +translation_of: Web/CSS/border-top +--- +
{{CSSRef}}
+ +

border-top一括指定CSS のプロパティで、要素の上側の境界のプロパティをすべて設定します。

+ +
{{EmbedInteractiveExample("pages/css/border-top.html")}}
+ + + +

他の一括指定プロパティと同様に、 border-top は、一部の値が指定されていなくても、設定可能なプロパティをすべて設定します。指定されていないプロパティは既定値が設定されます。つまり・・・

+ +
border-top-style: dotted;
+border-top: thick green;
+
+ +

・・・は、実際には以下と同じです・・・

+ +
border-top-style: dotted;
+border-top: none thick green;
+
+ +

・・・そして、 border-top の前で設定された {{cssxref("border-top-style")}} の値は無視されます。 {{cssxref("border-top-style")}} の既定値は none なので、 border-style の部分の設定は境界線なしとなります。

+ +

構成要素のプロパティ

+ +

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

+ + + +

構文

+ +
border-top: 1px;
+border-top: 2px dotted;
+border-top: medium dashed green;
+
+ +

一括指定プロパティの3つの値は任意の順序で指定可能で、また、1つまたは2つの値を省略することができます。

+ +

+ +
+
<br-width>
+
{{cssxref("border-top-width")}} を参照してください。
+
<br-style>
+
{{cssxref("border-top-style")}} を参照してください。
+
{{cssxref("<color>")}}
+
{{cssxref("border-top-color")}} を参照してください。
+
+ +

公式定義

+ +

{{CSSInfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

上側の境界の適用

+ +

HTML

+ +
<div>
+  このボックスには上側に境界線があります。
+</div>
+ +

CSS

+ +
div {
+  border-top: 4px dashed blue;
+  background-color: gold;
+  height: 100px;
+  width: 100px;
+  font-weight: bold;
+  text-align: center;
+}
+
+ +

結果

+ +

{{EmbedLiveSample('Applying_a_top_border')}}

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Backgrounds', '#propdef-border-top', 'border-top')}}{{Spec2('CSS3 Backgrounds')}}直接的な変更はないが、 {{cssxref("border-top-color")}} に適用される値が変更された。
{{SpecName('CSS2.1', 'box.html#propdef-border-top', 'border-top')}}{{Spec2('CSS2.1')}}有意な変更点なし。
{{SpecName('CSS1', '#border-top', 'border-top')}}{{Spec2('CSS1')}}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.border-top")}}

+ +

関連情報

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