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

The HTMLProgressElement interface provides special properties and methods (beyond the regular {{domxref("HTMLElement")}} interface it also has available to it by inheritance) for manipulating the layout and presentation of {{HTMLElement("progress")}} elements.

+ +

{{InheritanceDiagram(600, 120)}}

+ +

Properties

+ +

Inherits properties from its parent, {{domxref("HTMLElement")}}.

+ +
+
{{domxref("HTMLProgressElement.max")}}
+
Is a double value reflecting the content attribute of the same name, limited to numbers greater than zero. Its default value is 1.0.
+
{{domxref("HTMLProgressElement.position")}}{{readonlyInline}}
+
Returns a double value returning the result of dividing the current value (value) by the maximum value (max); if the progress bar is an indeterminate progress bar, it returns -1.
+
{{domxref("HTMLProgressElement.value")}}
+
Is a double value that reflects the current value; if the progress bar is an indeterminate progress bar, it returns 0.
+
{{domxref("HTMLProgressElement.labels")}}{{readonlyInline}}
+
Returns {{domxref("NodeList")}} containing the list of {{HTMLElement("label")}} elements that are labels for this element.
+
+ +

Methods

+ +

No specific method; inherits properties from its parent, {{domxref("HTMLElement")}}.

+ +

Specifications

+ + + + + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('HTML WHATWG', "forms.html#the-progress-element", "HTMLProgressElement")}}{{Spec2('HTML WHATWG')}}No change from {{SpecName("HTML5 W3C")}}.
{{SpecName('HTML5.1', "forms.html#the-progress-element", "HTMLProgressElement")}}{{Spec2('HTML5.1')}} 
{{SpecName('HTML5 W3C', "forms.html#the-progress-element", "HTMLProgressElement")}}{{Spec2('HTML5 W3C')}}Initial definition.
+ +

Browser compatibility

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureChromeEdgeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown()}}{{CompatVersionUnknown}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}
labels{{CompatVersionUnknown}}{{CompatNo}}{{CompatGeckoDesktop(56)}}[1]{{CompatNo}}{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FeatureAndroidEdgeFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown()}}{{CompatVersionUnknown}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}{{CompatVersionUnknown()}}
labels{{CompatUnknown}}{{CompatNo}}{{CompatGeckoMobile(56)}}[1]{{CompatNo}}{{CompatUnknown}}{{CompatUnknown}}
+
+ +

[1] Implemented in {{bug(556743)}}.

+ +

See also

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