CSS Lists and Counters

由於本文件沒有此語言的翻譯版本,您閱讀的是英文版的內容。 幫助我們翻譯這篇文章!

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.

參考

屬性

At-rules

@counter-style

指南

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
CSS Lists Module Level 3 Working Draft  
CSS Level 2 (Revision 1) Recommendation Initial definition

瀏覽器相容性

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help!

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 1.0 1.0 (1.7 or earlier) (Yes) (Yes) (Yes)
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support 1.0 1.0 (1) (Yes) (Yes) (Yes)