aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/css/outline-width/index.md
diff options
context:
space:
mode:
Diffstat (limited to 'files/ja/web/css/outline-width/index.md')
-rw-r--r--files/ja/web/css/outline-width/index.md134
1 files changed, 61 insertions, 73 deletions
diff --git a/files/ja/web/css/outline-width/index.md b/files/ja/web/css/outline-width/index.md
index 0f17326a4a..eb825528e8 100644
--- a/files/ja/web/css/outline-width/index.md
+++ b/files/ja/web/css/outline-width/index.md
@@ -3,78 +3,81 @@ title: outline-width
slug: Web/CSS/outline-width
tags:
- CSS
- - CSS Outline
- - CSS Property
+ - CSS 輪郭線
+ - CSS プロパティ
- Layout
- Reference
- - 'recipe:css-property'
+ - recipe:css-property
+browser-compat: css.properties.outline-width
translation_of: Web/CSS/outline-width
---
-<div>{{CSSRef}}</div>
+{{CSSRef}}
-<p><a href="/ja/docs/Web/CSS">CSS</a> の <strong><code>outline-width</code></strong> プロパティは、要素の輪郭線の太さを設定します。輪郭線とは要素の周りに描かれる線のことで、 {{cssxref("border")}} よりも外側です。</p>
+[CSS](/ja/docs/Web/CSS) の **`outline-width`** プロパティは、要素の輪郭線の太さを設定します。輪郭線とは要素の周りに描かれる線のことで、 {{cssxref("border")}} よりも外側です。
-<div>{{EmbedInteractiveExample("pages/css/outline-width.html")}}</div>
+{{EmbedInteractiveExample("pages/css/outline-width.html")}}
-<div class="hidden">このデモのソースファイルは GitHub リポジトリに格納されています。デモプロジェクトに協力したい場合は、 <a href="https://github.com/mdn/interactive-examples">https://github.com/mdn/interactive-examples</a> をクローンしてプルリクエストを送信してください。</div>
+たいていの場合、輪郭線の見た目を定義するときは一括指定プロパティ {{cssxref("outline")}} を使ったほうが便利です。
-<p>たいていの場合、輪郭線の見た目を定義するときは一括指定プロパティ {{cssxref("outline")}} を使ったほうが便利です。</p>
+## 構文
-<h2 id="Syntax" name="Syntax">構文</h2>
-
-<pre class="brush:css no-line-numbers notranslate">/* キーワード値 */
+```css
+/* キーワード値 */
outline-width: thin;
outline-width: medium;
outline-width: thick;
-/* &lt;length&gt; 値 */
+/* <length> 値 */
outline-width: 1px;
outline-width: 0.1em;
/* グローバル値 */
outline-width: inherit;
-</pre>
+outline-width: initial;
+outline-width: revert;
+outline-width: unset;
+```
-<p><code>outline-width</code> プロパティは、以下に挙げた値のうちの一つで指定します。</p>
+`outline-width` プロパティは、以下に挙げた値のうちの一つで指定します。
-<h3 id="Values" name="Values">値</h3>
+### 値
-<dl>
- <dt>{{cssxref("&lt;length&gt;")}}</dt>
- <dd>輪郭線の太さを <code>&lt;length&gt;</code> で指定します。</dd>
- <dt><code>thin</code></dt>
- <dd>ユーザーエージェントに依存します。Firefox のようなデスクトップブラウザーでは、通常は <code>1px</code> です。</dd>
- <dt><code>medium</code></dt>
- <dd>ユーザーエージェントに依存します。Firefox のようなデスクトップブラウザーでは、通常は <code>3px</code> です。</dd>
- <dt><code>thick</code></dt>
- <dd>ユーザーエージェントに依存します。Firefox のようなデスクトップブラウザーでは、通常は <code>5px</code> です。</dd>
-</dl>
+- {{cssxref("&lt;length&gt;")}}
+ - : 輪郭線の太さを `<length>` で指定します。
+- `thin`
+ - : ユーザーエージェントに依存します。Firefox のようなデスクトップブラウザーでは、通常は `1px` です。
+- `medium`
+ - : ユーザーエージェントに依存します。Firefox のようなデスクトップブラウザーでは、通常は `3px` です。
+- `thick`
+ - : ユーザーエージェントに依存します。Firefox のようなデスクトップブラウザーでは、通常は `5px` です。
-<h2 id="Formal_definition" name="Formal_definition">公式定義</h2>
+## 公式定義
-<p>{{cssinfo}}</p>
+{{cssinfo}}
-<h2 id="Formal_syntax" name="Formal_syntax">形式文法</h2>
+## 形式文法
{{csssyntax}}
-<h2 id="Examples" name="Examples">例</h2>
+## 例
-<h3 id="Setting_an_elements_outline_width" name="Setting_an_elements_outline_width">要素の輪郭線の幅の設定</h3>
+<h3 id="Setting_an_elements_outline_width">要素の輪郭線の幅の設定</h3>
-<h4 id="HTML">HTML</h4>
+#### HTML
-<pre class="brush: html notranslate">&lt;span id="thin"&gt;thin&lt;/span&gt;
-&lt;span id="medium"&gt;medium&lt;/span&gt;
-&lt;span id="thick"&gt;thick&lt;/span&gt;
-&lt;span id="twopixels"&gt;2px&lt;/span&gt;
-&lt;span id="oneex"&gt;1ex&lt;/span&gt;
-&lt;span id="em"&gt;1.2em&lt;/span&gt;
-</pre>
+```html
+<span id="thin">thin</span>
+<span id="medium">medium</span>
+<span id="thick">thick</span>
+<span id="twopixels">2px</span>
+<span id="oneex">1ex</span>
+<span id="em">1.2em</span>
+```
-<h4 id="CSS">CSS</h4>
+#### CSS
-<pre class="brush: css notranslate">span {
+```css
+span {
outline-style: solid;
display: inline-block;
margin: 20px;
@@ -103,37 +106,22 @@ outline-width: inherit;
#em {
outline-width: 1.2em;
}
+```
+
+#### 結果
+
+{{EmbedLiveSample('Setting_an_elements_outline_width', '100%', '80')}}
+
+## 仕様書
+
+{{Specifications}}
+
+## ブラウザーの互換性
+
+{{Compat}}
+
+## 関連情報
-</pre>
-
-<h4 id="Result" name="Result">結果</h4>
-
-<p>{{EmbedLiveSample('Setting_an_elements_outline_width', '100%', '80')}}</p>
-
-<h2 id="Specifications" name="Specifications">仕様書</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">仕様書</th>
- <th scope="col">状態</th>
- <th scope="col">備考</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS3 Basic UI', '#outline-width', 'outline-width')}}</td>
- <td>{{Spec2('CSS3 Basic UI')}}</td>
- <td>変更なし。</td>
- </tr>
- <tr>
- <td>{{SpecName('CSS2.1', 'ui.html#propdef-outline-width', 'outline-width')}}</td>
- <td>{{Spec2('CSS2.1')}}</td>
- <td>初回定義</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
-
-<p>{{Compat("css.properties.outline-width")}}</p>
+- {{cssxref("outline")}}
+- {{cssxref("outline-color")}}
+- {{cssxref("outline-style")}}