aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/css_counter_styles/index.html
blob: 305f55d128f413b4352fe630c64a2f23ce1c48eb (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
title: CSS Counter Styles
slug: Web/CSS/CSS_Counter_Styles
tags:
  - CSS
  - CSS计数
translation_of: Web/CSS/CSS_Counter_Styles
---
<div>{{cssref}}</div>

<p><strong>CSS 计数器样式</strong> is是一个让你自定义计数器样式的CSS模块.</p>

<h2 id="参考">参考</h2>

<h3 id="属性">属性</h3>

<div class="index">
<ul>
 <li>{{cssxref("counter-increment")}}</li>
 <li>{{cssxref("counter-reset")}}</li>
</ul>
</div>

<h3 id="At-rules">At-rules</h3>

<dl>
 <dt>{{cssxref("@counter-style")}}</dt>
 <dd>
 <div class="index">
 <ul>
  <li>{{cssxref("@counter-style/system","system")}}</li>
  <li>{{cssxref("@counter-style/additive-symbols", "additive-symbols")}}</li>
  <li>{{cssxref("@counter-style/negative", "negative")}}</li>
  <li>{{cssxref("@counter-style/prefix", "prefix")}}</li>
  <li>{{cssxref("@counter-style/suffix", "suffix")}}</li>
  <li>{{cssxref("@counter-style/range", "range")}}</li>
  <li>{{cssxref("@counter-style/pad", "pad")}}</li>
  <li>{{cssxref("@counter-style/speak-as", "speak-as")}}</li>
  <li>{{cssxref("@counter-style/fallback", "fallback")}}</li>
 </ul>
 </div>
 </dd>
</dl>

<h2 id="Specifications" name="Specifications">指南</h2>

<dl>
 <dt><a href="/en-US/docs/Web/CSS/CSS_Lists_and_Counters/Using_CSS_counters">使用CSS计数器</a></dt>
 <dd>描述如何使用计数器来给HTML元素计数,或者执行复杂的计数</dd>
</dl>

<h2 id="Specifications" name="Specifications">规范</h2>

<table class="standard-table">
 <thead>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
 </thead>
 <tbody>
  <tr>
   <td>{{SpecName('CSS3 Counter Styles')}}</td>
   <td>{{Spec2('CSS3 Counter Styles')}}</td>
   <td>初始化定义.</td>
  </tr>
 </tbody>
</table>

<h2 id="浏览器兼容性">浏览器兼容性</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>特性</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari</th>
  </tr>
  <tr>
   <td>基本支持</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoDesktop(33)}}<sup>[1]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>特性</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Mobile</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>基本支持</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatGeckoDesktop(33)}}<sup>[1]</sup></td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
   <td>{{CompatNo}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Gecko不在支持图片所描述的 {{cssxref("@counter-style/symbols", "symbols")}} .可以查看{{bug("1024179")}}.</p>