---
title: CSS Lists and Counters
slug: Web/CSS/CSS_Lists_and_Counters
translation_of: Web/CSS/CSS_Lists_and_Counters
---
{{CSSRef}}
CSS Lists and Counters is a module of CSS that defines how lists are laid out, how the list marker can be styled and how authors can create new counters.
參考
屬性
- {{cssxref("list-style-image")}}
- {{cssxref("list-style-type")}}
- {{cssxref("list-style-position")}}
- {{cssxref("list-style")}}
- {{cssxref("counter-reset")}}
- {{cssxref("counter-increment")}}
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")}}
指南
- Consistent list indentation
- Explains how to reach a consistent indentation between different browsers.
- Using CSS counters
- Describes how to use counters to be able to use numbering outside of traditional list elements or to perform complex counting.
規範
Specification |
Status |
Comment |
{{SpecName('CSS3 Lists')}} |
{{Spec2('CSS3 Lists')}} |
|
{{SpecName('CSS2.1', 'generate.html')}} |
{{Spec2('CSS2.1')}} |
Initial definition |