From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/css/css_counter_styles/index.html | 121 ++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 files/zh-cn/web/css/css_counter_styles/index.html (limited to 'files/zh-cn/web/css/css_counter_styles') diff --git a/files/zh-cn/web/css/css_counter_styles/index.html b/files/zh-cn/web/css/css_counter_styles/index.html new file mode 100644 index 0000000000..305f55d128 --- /dev/null +++ b/files/zh-cn/web/css/css_counter_styles/index.html @@ -0,0 +1,121 @@ +--- +title: CSS Counter Styles +slug: Web/CSS/CSS_Counter_Styles +tags: + - CSS + - CSS计数 +translation_of: Web/CSS/CSS_Counter_Styles +--- +
{{cssref}}
+ +

CSS 计数器样式 is是一个让你自定义计数器样式的CSS模块.

+ +

参考

+ +

属性

+ +
+ +
+ +

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元素计数,或者执行复杂的计数
+
+ +

规范

+ + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('CSS3 Counter Styles')}}{{Spec2('CSS3 Counter Styles')}}初始化定义.
+ +

浏览器兼容性

+ +

{{CompatibilityTable}}

+ +
+ + + + + + + + + + + + + + + + + + + +
特性ChromeFirefox (Gecko)Internet ExplorerOperaSafari
基本支持{{CompatNo}}{{CompatGeckoDesktop(33)}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
特性AndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
基本支持{{CompatNo}}{{CompatGeckoDesktop(33)}}[1]{{CompatNo}}{{CompatNo}}{{CompatNo}}
+
+ +

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

-- cgit v1.2.3-54-g00ecf