From 8824afb494e5398bc0efcf5f7eb78782096fc90c Mon Sep 17 00:00:00 2001 From: A1lo Date: Fri, 18 Mar 2022 21:53:46 +0800 Subject: Replace marco `anch` with `` tag for `zh-CN` (#4668) * replace anch with tag `` * auto replace anch with scripts * fix: resolve some incorrect anchors * replace anch with markdown link in markdown files * sync with english version for `Properties` * fix: resolve some incorrect anchors * using `Specifications` marco to replace `` * fix: resolve some incorrect anchors * remove the `noteCard` and add a `h2` head * fix: resolve some incorrect anchors * remove the duplicated content * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors * revert the content change and replace anch * revert the content change and replace anch * revert the content chang * fix: correct the `href` * revert content changes and replace the anch * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors * fix: resolve some incorrect anchors --- files/zh-cn/web/html/element/input/time/index.html | 28 +++++++++++----------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'files/zh-cn/web/html/element/input/time/index.html') diff --git a/files/zh-cn/web/html/element/input/time/index.html b/files/zh-cn/web/html/element/input/time/index.html index c6e2cd736e..6f69436ba7 100644 --- a/files/zh-cn/web/html/element/input/time/index.html +++ b/files/zh-cn/web/html/element/input/time/index.html @@ -50,7 +50,7 @@ translation_of: Web/HTML/Element/input/time
- + @@ -90,7 +90,7 @@ timeControl.value = '15:30';

Time value format

-

The value of the time input is always in 24-hour format: hh:mm, regardless of the input format, which is likely to be selected based on the user's locale (or by the user agent). If the time includes seconds (see {{anch("Using the step attribute")}}), the format is always hh:mm:ss. You can learn more about the format of the time value used by this input type in {{SectionOnPage("/en-US/docs/Web/HTML/Date_and_time_formats", "Time strings")}}.

+

The value of the time input is always in 24-hour format: hh:mm, regardless of the input format, which is likely to be selected based on the user's locale (or by the user agent). If the time includes seconds (see Using the step attribute), the format is always hh:mm:ss. You can learn more about the format of the time value used by this input type in {{SectionOnPage("/en-US/docs/Web/HTML/Date_and_time_formats", "Time strings")}}.

在此示例中,您可以通过输入时间并查看之后如何更改来查看时间输入的值。

@@ -116,7 +116,7 @@ startTime.addEventListener("input", function() {

{{EmbedLiveSample("Time_value_format", 600, 80)}}

-

When a form including a time input is submitted, the value is encoded before being included in the form's data. The form's data entry for a time input will always be in the form name=hh%3Amm, or name=hh%3Amm%3ass if seconds are included (see {{anch("Using the step attribute")}}).

+

When a form including a time input is submitted, the value is encoded before being included in the form's data. The form's data entry for a time input will always be in the form name=hh%3Amm, or name=hh%3Amm%3ass if seconds are included (see Using the step attribute).

Additional attributes

@@ -131,19 +131,19 @@ startTime.addEventListener("input", function() { - - + + - + - + - + @@ -151,17 +151,17 @@ startTime.addEventListener("input", function() {
Unlike many data types, time values have a periodic domain, meaning that the values reach the highest possible value, then wrap back around to the beginning again. For example, specifying a min of 14:00 and a max of 2:00 means that the permitted time values start at 2:00 PM, run through midnight to the next day, ending at 2:00 AM.
-

{{htmlattrdef("max")}}

+

max

-

A string indicating the latest time to accept, specified in the same {{anch("Time value format", "time value format")}} as described above. If the specified string isn't a valid time, no maximum value is set.

+

A string indicating the latest time to accept, specified in the same time value format as described above. If the specified string isn't a valid time, no maximum value is set.

-

{{htmlattrdef("min")}}

+

min

-

A string specifying the earliest time to accept, given in the {{anch("Time value format", "time value format")}} described previously. If the value specified isn't a valid time string, no minimum value is set.

+

A string specifying the earliest time to accept, given in the time value format described previously. If the value specified isn't a valid time string, no minimum value is set.

{{page("/en-US/docs/Web/HTML/Element/input/text", "readonly", 0, 1, 2)}}

-

{{htmlattrdef("step")}}

+

step

{{page("/en-US/docs/Web/HTML/Element/input/number", "step-include")}}

@@ -173,7 +173,7 @@ startTime.addEventListener("input", function() {

虽然 data 和 time 输入类型中的时间具有最广泛的浏览器支持,但它尚未接近普及,因此您可能需要提供一种替代方法来输入日期和时间,以便 Safari 用户(和用户)其他非支持浏览器)仍然可以轻松输入时间值。

-

We'll look at basic and more complex uses of <input type="time">, then offer advice on mitigating the browser support issue later on (see {{anch("Handling browser support")}}).

+

We'll look at basic and more complex uses of <input type="time">, then offer advice on mitigating the browser support issue later on (see Handling browser support).

Basic uses of time

-- cgit v1.2.3-54-g00ecf
{{anch("Value")}}Value A {{domxref("DOMString")}} representing a time, or empty.
{{anch("max")}}The latest time to accept, in the syntax described under {{anch("Time value format")}}maxThe latest time to accept, in the syntax described under Time value format
{{anch("min")}}min The earliest time to accept as a valid input
{{anch("readonly")}}readonly A Boolean attribute which, if present, indicates that the contents of the time input should not be user-editable
{{anch("step")}}step The stepping interval to use both for user interfaces purposes and during constraint validation