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/list-style/index.html | 143 ++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 files/zh-cn/web/css/list-style/index.html (limited to 'files/zh-cn/web/css/list-style') diff --git a/files/zh-cn/web/css/list-style/index.html b/files/zh-cn/web/css/list-style/index.html new file mode 100644 index 0000000000..a65ff6621b --- /dev/null +++ b/files/zh-cn/web/css/list-style/index.html @@ -0,0 +1,143 @@ +--- +title: list-style +slug: Web/CSS/list-style +translation_of: Web/CSS/list-style +--- +
{{CSSRef}}
+ +
list-style CSS 属性是一个简写对属性集合,包括{{cssxref("list-style-type")}}, {{cssxref("list-style-image")}}, 和 {{cssxref("list-style-position")}}。
+ +

概要

+ +

CSS list-style 属性是设置{{cssxref("list-style-type")}}, {{cssxref("list-style-image")}} 和 {{cssxref("list-style-position")}}  的简写属性。

+ +

{{cssinfo}}

+ +

语法

+ +
Formal syntax: {{csssyntax("list-style")}}
+ +

+ +

以任何顺序接受一个,二个或者三个关键词

+ +
+
<'list-style-type'>
+
参看 {{cssxref("list-style-type")}}
+
<'list-style-image'>
+
参看 {{cssxref("list-style-image")}}
+
<'list-style-position'>
+
参看 {{cssxref("list-style-position")}}
+
+ +

示例

+ +

HTML

+ +
List 1
+<ul class="one">
+  <li>List Item1</li>
+  <li>List Item2</li>
+  <li>List Item3</li>
+</ul>
+List 2
+<ul class="two">
+  <li>List Item A</li>
+  <li>List Item B</li>
+  <li>List Item C</li>
+</ul>
+
+ +

CSS

+ +
.one {
+  list-style: circle;
+}
+
+.two {
+  list-style: square inside;
+}
+ +

Result

+ +

{{EmbedLiveSample('示例')}}

+ +

规范

+ + + + + + + + + + + + + + + + + + + + + +
规范状态注释
{{SpecName('CSS3 Lists', '#list-style', 'list-style')}}{{Spec2('CSS3 Lists')}}没有改变
{{SpecName('CSS2.1', 'generate.html#propdef-list-style', 'list-style')}}{{Spec2('CSS2.1')}}初始定义
+ +

浏览器兼容性

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support1.0{{CompatGeckoDesktop("1")}}4.07.01.0
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support1.0{{CompatGeckoMobile("1")}}6.06.01.0
+
+ +

另参见

+ + -- cgit v1.2.3-54-g00ecf