blob: d8ec39abce61e2ef917e09aaeeb2fa414b643512 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
---
title: CSS カウンタースタイル
slug: Web/CSS/CSS_Counter_Styles
tags:
- CSS
- CSS カウンタースタイル
- ガイド
- NeedsContent
- 概要
- リファレンス
translation_of: Web/CSS/CSS_Counter_Styles
---
{{CSSRef}}
**CSS カウンタースタイル** (CSS Counter Styles) は CSS のモジュールの一つで、独自のカウンタースタイルを定義することができます。
## リファレンス
### プロパティ
- {{cssxref("counter-increment")}}
- {{cssxref("counter-reset")}}
### アットルール
- {{cssxref("@counter-style")}}
- {{cssxref("@counter-style/system","system")}}
- {{cssxref("@counter-style/additive-symbols", "additive-symbols")}}
- {{cssxref("@counter-style/negative", "negative")}}
- {{cssxref("@counter-style/prefix", "prefix")}}
- {{cssxref("@counter-style/suffix", "suffix")}}
- {{cssxref("@counter-style/range", "range")}}
- {{cssxref("@counter-style/pad", "pad")}}
- {{cssxref("@counter-style/speak-as", "speak-as")}}
- {{cssxref("@counter-style/fallback", "fallback")}}
## ガイド
- [CSS カウンターの使用](/ja/docs/Web/CSS/CSS_Counter_Styles/Using_CSS_counters)
- : カウンターを使用して HTML 要素に番号を振る方法や、複雑なカウンターを実行する方法を説明します。
## 仕様書
| 仕様書 | 状態 | 備考 |
| ----------------------------------- | -------------------------------- | -------- |
| {{SpecName('CSS3 Counter Styles')}} | {{Spec2('CSS3 Counter Styles')}} | 初回定義 |
## ブラウザーの互換性
### `@counter-style` ルール
{{Compat("css.at-rules.counter-style")}}
### `counter-increment` プロパティ
{{Compat("css.properties.counter-increment")}}
### `counter-reset` プロパティ
{{Compat("css.properties.counter-reset")}}
|