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/api/htmllielement/index.html | 76 ++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 files/zh-cn/web/api/htmllielement/index.html (limited to 'files/zh-cn/web/api/htmllielement/index.html') diff --git a/files/zh-cn/web/api/htmllielement/index.html b/files/zh-cn/web/api/htmllielement/index.html new file mode 100644 index 0000000000..d545525340 --- /dev/null +++ b/files/zh-cn/web/api/htmllielement/index.html @@ -0,0 +1,76 @@ +--- +title: HTMLLIElement +slug: Web/API/HTMLLIElement +tags: + - API + - DOM + - 参考 + - 接口 +translation_of: Web/API/HTMLLIElement +--- +
{{APIRef("HTML DOM")}}
+ +

HTMLLIElement 接口公开了特定的属性和方法(超出了常规 {{domxref("HTMLElement")}} 接口所定义的接口,它通过继承可用于操作列表元素。

+ +

{{InheritanceDiagram(600,120)}}

+ +

属性

+ +

从其父级 {{domxref("HTMLElement")}} 继承属性。

+ +
+
{{domxref("HTMLLIElement.type")}} {{obsolete_inline}}
+
是{{domxref("DOMString")}}表示项目符号的类型 "disc""square""circle"。由于定义列表类型的标准方法是通过 CSS {{cssxref("list-style-type")}}属性,应当使用 CSSOM 方法通过脚本设置它。
+
{{domxref( "HTMLLIElement.value")}}
+
long指示给定{{HTMLElement("ol")}}中列表元素的序号位置。它反映了HTML {{HTMLElement("li")}}元素的{{htmlattrxref("value","li")}}属性,并且可以小于0。如果{{HTMLElement("li")}}元素不是{{HTMLElement("ol")}}元素的子元素,则该属性没有意义。
+
+ +

方法

+ +

没有具体方法; 从其父级 {{domxref("HTMLElement")}} 继承属性。

+ +

规范

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
规范状态备注
{{SpecName('HTML WHATWG',"#htmllielement","HTMLLIElement")}}{{Spec2('HTML WHATWG')}}
{{SpecName('HTML5 W3C',"grouping-content.html#the-li-element","HTMLLIElement")}}{{Spec2('HTML5 W3C')}}以下属性现已过时:type
{{SpecName('DOM2 HTML','html.html#ID-74680021','HTMLLIElement')}}{{Spec2('DOM2 HTML')}}{{SpecName("DOM1")}}没有变化。
{{SpecName('DOM1','level-one-html.html#ID-74680021','HTMLLIElement')}}{{SPEC2( 'DOM1')}}初步定义。
+ +

浏览器兼容性

+ +
+ + +

{{COMPAT( "api.HTMLLIElement")}}

+
+ +

参见

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