---
title: CSS Counter Styles
slug: Web/CSS/CSS_Counter_Styles
tags:
- CSS
- CSS计数
translation_of: Web/CSS/CSS_Counter_Styles
---
{{cssref}}
CSS 计数器样式 is是一个让你自定义计数器样式的CSS模块.
参考
属性
- {{cssxref("counter-increment")}}
- {{cssxref("counter-reset")}}
At-rules
- {{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计数器
- 描述如何使用计数器来给HTML元素计数,或者执行复杂的计数
规范
Specification |
Status |
Comment |
{{SpecName('CSS3 Counter Styles')}} |
{{Spec2('CSS3 Counter Styles')}} |
初始化定义. |
浏览器兼容性
@counter-style
rule
{{Compat("css.at-rules.counter-style")}}
counter-increment
property
{{Compat("css.properties.counter-increment")}}
counter-reset
property
{{Compat("css.properties.counter-reset")}}