From 62ed2901fb9efc6e5bbc6ef8013112b3dc6ec22f Mon Sep 17 00:00:00 2001 From: Masahiro FUJIMOTO Date: Sun, 7 Nov 2021 15:59:39 +0900 Subject: CSS Lists 関連のプロパティの変換準備 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/ja/web/css/list-style-image/index.html | 113 -------------------- files/ja/web/css/list-style-image/index.md | 113 ++++++++++++++++++++ files/ja/web/css/list-style-position/index.html | 132 ------------------------ files/ja/web/css/list-style-position/index.md | 132 ++++++++++++++++++++++++ 4 files changed, 245 insertions(+), 245 deletions(-) delete mode 100644 files/ja/web/css/list-style-image/index.html create mode 100644 files/ja/web/css/list-style-image/index.md delete mode 100644 files/ja/web/css/list-style-position/index.html create mode 100644 files/ja/web/css/list-style-position/index.md (limited to 'files/ja') diff --git a/files/ja/web/css/list-style-image/index.html b/files/ja/web/css/list-style-image/index.html deleted file mode 100644 index cf725c5287..0000000000 --- a/files/ja/web/css/list-style-image/index.html +++ /dev/null @@ -1,113 +0,0 @@ ---- -title: list-style-image -slug: Web/CSS/list-style-image -tags: - - CSS - - CSS プロパティ - - CSS リスト - - Reference - - list-style - - list-style-image -translation_of: Web/CSS/list-style-image ---- -
{{CSSRef}}
- -

CSSlist-style-image プロパティは、リスト項目のマーカーとして使われる画像を設定します。

- -

ふつうは一括指定の {{cssxref("list-style")}} を使うほうが便利です。

- -
{{EmbedInteractiveExample("pages/css/list-style-image.html")}}
- - - -
-

注: このプロパティはリスト項目、つまり、 {{cssxref("display")}}: list-item; が指定された要素に対して適用されます。既定では、 {{HTMLElement("li")}} 要素を含みます。このプロパティは継承されるので、親要素 (通常は {{HTMLElement("ol")}} や {{HTMLElement("ul")}}) に設定することで、すべてのリスト項目に適用することができます。

-
- -

構文

- -
/* キーワード値 */
-list-style-image: none;
-
-/* <url> 値 */
-list-style-image: url('starsolid.gif');
-
-/* グローバル値 */
-list-style-image: inherit;
-list-style-image: initial;
-list-style-image: unset;
-
- -

- -
-
{{cssxref("<url>")}}
-
マーカーとして使う画像の場所です。
-
none
-
画像をマーカーとして使用しないことを指定します。この値が設定された場合、代わりに {{ Cssxref("list-style-type") }} で定義されたマーカーが使われます。
-
- -

公式定義

- -

{{cssinfo}}

- -

形式文法

- -{{csssyntax}} - -

- -

リスト項目の画像の設定

- -

HTML

- -
<ul>
-  <li>Item 1</li>
-  <li>Item 2</li>
-</ul>
-
- -

CSS

- -
ul {
-  list-style-image: url("https://mdn.mozillademos.org/files/11981/starsolid.gif");
-}
- -

結果

- -

{{ EmbedLiveSample('Setting_list_item_images') }}

- -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{ SpecName('CSS3 Lists', '#propdef-list-style-image', 'list-style-image') }}{{ Spec2('CSS3 Lists') }}すべての {{cssxref("<image>")}} データ型をサポートするように拡張
{{ SpecName('CSS2.1', 'generate.html#propdef-list-style-image', 'list-style-image') }}{{ Spec2('CSS2.1') }}初回定義
- -

ブラウザーの互換性

- -

{{Compat("css.properties.list-style-image")}}

- -

関連情報

- - diff --git a/files/ja/web/css/list-style-image/index.md b/files/ja/web/css/list-style-image/index.md new file mode 100644 index 0000000000..cf725c5287 --- /dev/null +++ b/files/ja/web/css/list-style-image/index.md @@ -0,0 +1,113 @@ +--- +title: list-style-image +slug: Web/CSS/list-style-image +tags: + - CSS + - CSS プロパティ + - CSS リスト + - Reference + - list-style + - list-style-image +translation_of: Web/CSS/list-style-image +--- +
{{CSSRef}}
+ +

CSSlist-style-image プロパティは、リスト項目のマーカーとして使われる画像を設定します。

+ +

ふつうは一括指定の {{cssxref("list-style")}} を使うほうが便利です。

+ +
{{EmbedInteractiveExample("pages/css/list-style-image.html")}}
+ + + +
+

注: このプロパティはリスト項目、つまり、 {{cssxref("display")}}: list-item; が指定された要素に対して適用されます。既定では、 {{HTMLElement("li")}} 要素を含みます。このプロパティは継承されるので、親要素 (通常は {{HTMLElement("ol")}} や {{HTMLElement("ul")}}) に設定することで、すべてのリスト項目に適用することができます。

+
+ +

構文

+ +
/* キーワード値 */
+list-style-image: none;
+
+/* <url> 値 */
+list-style-image: url('starsolid.gif');
+
+/* グローバル値 */
+list-style-image: inherit;
+list-style-image: initial;
+list-style-image: unset;
+
+ +

+ +
+
{{cssxref("<url>")}}
+
マーカーとして使う画像の場所です。
+
none
+
画像をマーカーとして使用しないことを指定します。この値が設定された場合、代わりに {{ Cssxref("list-style-type") }} で定義されたマーカーが使われます。
+
+ +

公式定義

+ +

{{cssinfo}}

+ +

形式文法

+ +{{csssyntax}} + +

+ +

リスト項目の画像の設定

+ +

HTML

+ +
<ul>
+  <li>Item 1</li>
+  <li>Item 2</li>
+</ul>
+
+ +

CSS

+ +
ul {
+  list-style-image: url("https://mdn.mozillademos.org/files/11981/starsolid.gif");
+}
+ +

結果

+ +

{{ EmbedLiveSample('Setting_list_item_images') }}

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{ SpecName('CSS3 Lists', '#propdef-list-style-image', 'list-style-image') }}{{ Spec2('CSS3 Lists') }}すべての {{cssxref("<image>")}} データ型をサポートするように拡張
{{ SpecName('CSS2.1', 'generate.html#propdef-list-style-image', 'list-style-image') }}{{ Spec2('CSS2.1') }}初回定義
+ +

ブラウザーの互換性

+ +

{{Compat("css.properties.list-style-image")}}

+ +

関連情報

+ + diff --git a/files/ja/web/css/list-style-position/index.html b/files/ja/web/css/list-style-position/index.html deleted file mode 100644 index 736b5876f4..0000000000 --- a/files/ja/web/css/list-style-position/index.html +++ /dev/null @@ -1,132 +0,0 @@ ---- -title: list-style-position -slug: Web/CSS/list-style-position -tags: - - CSS - - CSS プロパティ - - CSS リスト - - Reference - - list-style - - list-style-position -translation_of: Web/CSS/list-style-position ---- -
{{CSSRef}}
- -

CSSlist-style-position プロパティは、リストアイテムに対する {{cssxref("::marker")}} の位置を指定します。

- -
{{EmbedInteractiveExample("pages/css/list-style-position.html")}}
- - - -

多くの場合、一括指定の {{cssxref("list-style")}} を使うほうが便利です。

- -

メモ: このプロパティはリストアイテムに対して適用されます。つまり、 {{cssxref("display")}}: list-item; が指定された要素です。既定では、 {{HTMLElement("li")}} 要素を含みます。このプロパティは継承されるので、親要素 (通常は {{HTMLElement("ol")}} や {{HTMLElement("ul")}}) に設定することで、すべてのリストアイテムに適用することができます。

- -

メモ: list-style-position: inside を指定したリスト要素の中で最初にブロック要素が配置された場合、その動作はブラウザーによって異なります。 Chrome と Safari では、この要素はマーカーボックスと同じ行に配置されますが、 Firefox、 Internet Explorer、 Opera では次の行に配置されます。 詳細については {{bug(36854)}} をご覧ください。

- -

構文

- -
/* キーワード値 */
-list-style-position: inside;
-list-style-position: outside;
-
-/* グローバル値 */
-list-style-position: inherit;
-list-style-position: initial;
-list-style-position: unset;
-
- -

list-style-position プロパティには、下記の値の中の一つが指定されます。

- -

- -
-
inside
-
{{cssxref("::marker")}} はリストアイテムの最初の要素として配置されます。
-
outside
-
{{cssxref("::marker")}} は主要ブロックボックスの外に配置されます。
-
- -

形式文法

- -{{csssyntax}} - -

- -

HTML

- -
<ul class="inside">List 1
-  <li>List Item 1-1</li>
-  <li>List Item 1-2</li>
-  <li>List Item 1-3</li>
-  <li>List Item 1-4</li>
-</ul>
-<ul class="outside">List 2
-  <li>List Item 2-1</li>
-  <li>List Item 2-2</li>
-  <li>List Item 2-3</li>
-  <li>List Item 2-4</li>
-</ul>
-<ul class="inside-img">List 3
-  <li>List Item 3-1</li>
-  <li>List Item 3-2</li>
-  <li>List Item 3-3</li>
-  <li>List Item 3-4</li>
-</ul>
- -

CSS

- -
.inside {
-  list-style-position: inside;
-  list-style-type: square;
-}
-
-.outside {
-  list-style-position: outside;
-  list-style-type: circle;
-}
-
-.inside-img {
-  list-style-position: inside;
-  list-style-image: url("https://mdn.mozillademos.org/files/11979/starsolid.gif");
-}
- -

結果

- -

{{EmbedLiveSample("Examples", 200, 420)}}

- -

仕様書

- - - - - - - - - - - - - - - - - - - - - -
仕様書状態備考
{{SpecName('CSS3 Lists', '#list-style-position-property', 'list-style-position')}}{{Spec2('CSS3 Lists')}}変更なし
{{SpecName('CSS2.1', 'generate.html#propdef-list-style-position', 'list-style-position')}}{{Spec2('CSS2.1')}}初回定義
- -

{{cssinfo}}

- -

ブラウザーの対応

- -

{{Compat("css.properties.list-style-position")}}

- -

関連情報

- - diff --git a/files/ja/web/css/list-style-position/index.md b/files/ja/web/css/list-style-position/index.md new file mode 100644 index 0000000000..736b5876f4 --- /dev/null +++ b/files/ja/web/css/list-style-position/index.md @@ -0,0 +1,132 @@ +--- +title: list-style-position +slug: Web/CSS/list-style-position +tags: + - CSS + - CSS プロパティ + - CSS リスト + - Reference + - list-style + - list-style-position +translation_of: Web/CSS/list-style-position +--- +
{{CSSRef}}
+ +

CSSlist-style-position プロパティは、リストアイテムに対する {{cssxref("::marker")}} の位置を指定します。

+ +
{{EmbedInteractiveExample("pages/css/list-style-position.html")}}
+ + + +

多くの場合、一括指定の {{cssxref("list-style")}} を使うほうが便利です。

+ +

メモ: このプロパティはリストアイテムに対して適用されます。つまり、 {{cssxref("display")}}: list-item; が指定された要素です。既定では、 {{HTMLElement("li")}} 要素を含みます。このプロパティは継承されるので、親要素 (通常は {{HTMLElement("ol")}} や {{HTMLElement("ul")}}) に設定することで、すべてのリストアイテムに適用することができます。

+ +

メモ: list-style-position: inside を指定したリスト要素の中で最初にブロック要素が配置された場合、その動作はブラウザーによって異なります。 Chrome と Safari では、この要素はマーカーボックスと同じ行に配置されますが、 Firefox、 Internet Explorer、 Opera では次の行に配置されます。 詳細については {{bug(36854)}} をご覧ください。

+ +

構文

+ +
/* キーワード値 */
+list-style-position: inside;
+list-style-position: outside;
+
+/* グローバル値 */
+list-style-position: inherit;
+list-style-position: initial;
+list-style-position: unset;
+
+ +

list-style-position プロパティには、下記の値の中の一つが指定されます。

+ +

+ +
+
inside
+
{{cssxref("::marker")}} はリストアイテムの最初の要素として配置されます。
+
outside
+
{{cssxref("::marker")}} は主要ブロックボックスの外に配置されます。
+
+ +

形式文法

+ +{{csssyntax}} + +

+ +

HTML

+ +
<ul class="inside">List 1
+  <li>List Item 1-1</li>
+  <li>List Item 1-2</li>
+  <li>List Item 1-3</li>
+  <li>List Item 1-4</li>
+</ul>
+<ul class="outside">List 2
+  <li>List Item 2-1</li>
+  <li>List Item 2-2</li>
+  <li>List Item 2-3</li>
+  <li>List Item 2-4</li>
+</ul>
+<ul class="inside-img">List 3
+  <li>List Item 3-1</li>
+  <li>List Item 3-2</li>
+  <li>List Item 3-3</li>
+  <li>List Item 3-4</li>
+</ul>
+ +

CSS

+ +
.inside {
+  list-style-position: inside;
+  list-style-type: square;
+}
+
+.outside {
+  list-style-position: outside;
+  list-style-type: circle;
+}
+
+.inside-img {
+  list-style-position: inside;
+  list-style-image: url("https://mdn.mozillademos.org/files/11979/starsolid.gif");
+}
+ +

結果

+ +

{{EmbedLiveSample("Examples", 200, 420)}}

+ +

仕様書

+ + + + + + + + + + + + + + + + + + + + + +
仕様書状態備考
{{SpecName('CSS3 Lists', '#list-style-position-property', 'list-style-position')}}{{Spec2('CSS3 Lists')}}変更なし
{{SpecName('CSS2.1', 'generate.html#propdef-list-style-position', 'list-style-position')}}{{Spec2('CSS2.1')}}初回定義
+ +

{{cssinfo}}

+ +

ブラウザーの対応

+ +

{{Compat("css.properties.list-style-position")}}

+ +

関連情報

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