From 33fdcea3f3c7a085d4962e06e3270f91a974670c Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Mon, 15 Nov 2021 01:17:27 +0900 Subject: CSS Borders 関係のプロパティの文書を更新 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 2021/11/13 時点の英語版に同期 --- files/ja/web/css/border-top-style/index.md | 139 +++++++++++++---------------- 1 file changed, 61 insertions(+), 78 deletions(-) (limited to 'files/ja/web/css/border-top-style') diff --git a/files/ja/web/css/border-top-style/index.md b/files/ja/web/css/border-top-style/index.md index c09d194a88..a2f2833b05 100644 --- a/files/ja/web/css/border-top-style/index.md +++ b/files/ja/web/css/border-top-style/index.md @@ -3,29 +3,25 @@ title: border-top-style slug: Web/CSS/border-top-style tags: - CSS + - CSS 境界 - CSS プロパティ - - CSS 背景と境界 - - Reference - - border - - border-style - - border-top + - リファレンス + - recipe:css-property +browser-compat: css.properties.border-top-style translation_of: Web/CSS/border-top-style --- -
{{CSSRef}}
+{{CSSRef}} -

border-top-styleCSS のプロパティで、要素の上側の境界 ({{CSSxRef("border")}}) における線の形状を設定します。

+**`border-top-style`** は [CSS](/ja/docs/Web/CSS) のプロパティで、要素の上側の境界 ({{CSSxRef("border")}}) における線の形状を設定します。 -
{{EmbedInteractiveExample("pages/css/border-top-style.html")}}
+{{EmbedInteractiveExample("pages/css/border-top-style.html")}} - +> **Note:** 仕様書では、異なる形状の境界線を角でどのように接続するかを定義していません。 -
-

メモ: 仕様書では、異なる形状の境界線を角でどの様に接続するかを定義していません。

-
+## 構文 -

構文

- -
/* キーワード値 */
+```css
+/* キーワード値 */
 border-top-style: none;
 border-top-style: hidden;
 border-top-style: dotted;
@@ -40,41 +36,51 @@ border-top-style: outset;
 /* グローバル値 */
 border-top-style: inherit;
 border-top-style: initial;
+border-top-style: revert;
 border-top-style: unset;
-
+``` + +`border-top-style` プロパティは、 {{CSSxRef("border-style")}} プロパティで利用できるキーワードのうちの一つで指定します。 + +## 公式定義 -

border-top-style プロパティは、 {{CSSxRef("border-style")}} プロパティで利用できるキーワードのうちの一つで指定します。

+{{CSSInfo}} -

形式文法

+## 形式文法 {{CSSSyntax}} -

- -

HTML

- -
<table>
-  <tr>
-    <td class="b1">none</td>
-    <td class="b2">hidden</td>
-    <td class="b3">dotted</td>
-    <td class="b4">dashed</td>
-  </tr>
-  <tr>
-    <td class="b5">solid</td>
-    <td class="b6">double</td>
-    <td class="b7">groove</td>
-    <td class="b8">ridge</td>
-  </tr>
-  <tr>
-    <td class="b9">inset</td>
-    <td class="b10">outset</td>
-  </tr>
-</table>
- -

CSS

- -
/* 表の外見を定義 */
+

+ +### border-top-style の設定 + +#### HTML + +```html + + + + + + + + + + + + + + + + + +
nonehiddendotteddashed
soliddoublegrooveridge
insetoutset
+``` + +#### CSS + +```css +/* 表の外見を定義 */ table { border-width: 2px; background-color: #52E385; @@ -93,45 +99,22 @@ tr, td { .b7 {border-top-style: groove;} .b8 {border-top-style: ridge;} .b9 {border-top-style: inset;} -.b10 {border-top-style: outset;}
+.b10 {border-top-style: outset;} +``` -

結果

+#### 結果 -

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

+{{EmbedLiveSample('Examples', 300, 200)}} -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Backgrounds', '#the-border-style', 'border-top-style')}}{{Spec2('CSS3 Backgrounds')}}重要な変更はなし。
{{SpecName('CSS2.1', 'box.html#border-style-properties', 'border-top-style')}}{{Spec2('CSS2.1')}}初回定義。
+## 仕様書 -

{{CSSInfo}}

+{{Specifications}} -

ブラウザーの互換性

+## ブラウザーの互換性 -

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

+{{Compat}} -

関連情報

+## 関連情報 - + - その他の形状に関する境界のプロパティ: {{CSSxRef("border-left-style")}}, {{CSSxRef("border-right-style")}}, {{CSSxRef("border-bottom-style")}}, {{CSSxRef("border-style")}} + - その他の左側の境界に関するプロパティ: {{CSSxRef("border-top")}}, {{CSSxRef("border-top-color")}}, {{CSSxRef("border-top-width")}} -- cgit v1.2.3-54-g00ecf