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 --- .../zh-cn/web/html/element/input/search/index.html | 50 +++++++++++----------- 1 file changed, 25 insertions(+), 25 deletions(-) (limited to 'files/zh-cn/web/html/element/input/search/index.html') diff --git a/files/zh-cn/web/html/element/input/search/index.html b/files/zh-cn/web/html/element/input/search/index.html index 2148071515..fc1431e90c 100644 --- a/files/zh-cn/web/html/element/input/search/index.html +++ b/files/zh-cn/web/html/element/input/search/index.html @@ -22,7 +22,7 @@ translation_of: Web/HTML/Element/input/search
- + @@ -51,7 +51,7 @@ translation_of: Web/HTML/Element/input/search
searchTerms = mySearch.value;
 
-

如果没有针对输入的验证约束 (请参见 {{anch("Validation")}}),该值可以是任何文本字符串或空字符串 ("")。

+

如果没有针对输入的验证约束 (请参见验证方式),该值可以是任何文本字符串或空字符串 ("")。

其他属性

@@ -66,59 +66,59 @@ translation_of: Web/HTML/Element/input/search - + - + - + - + - + - + - + - +
{{anch("值")}} {{domxref("DOMString")}} 代表搜索字段中包含的值。
{{anch("list")}}list <datalist> 元素的 ID,其中包含可选的预定义自动完成选项。
{{anch("maxlength")}}maxlength 输入应接受的最大字符数。
{{anch("minlength")}}minlength 输入可以且仍被认为有效的最小字符数。
{{anch("pattern")}}pattern 输入内容必须匹配的正则表达式才能有效。
{{anch("placeholder")}}placeholder 空时在输入字段中显示的示例值。
{{anch("readonly")}}readonly 一个布尔属性,指示输入的内容是否应为只读。
{{anch("size")}}size 一个数字,指示输入字段应宽多少个字符。
{{anch("spellcheck")}}spellcheck 控制是否对输入字段启用拼写检查,或者是否应使用默认拼写检查配置。
-

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "list", 0, 1, 2)}}

+

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "list", 0, 1, 2)}}

-

{{htmlattrdef("maxlength")}}

+

maxlength

用户可以在搜索字段中输入的最大字符数(以 UTF-16 代码为单位)。 必须为 0 或更高的整数。 如果未指定 maxlength 或指定了无效值,则搜索字段没有最大长度。 此值还必须大于或等于 minlength 的值。

如果输入到字段中的文本的长度大于 maxlength UTF-16 代码单元的长度,则输入无法通过约束验证(constraint validation)。

-

{{htmlattrdef("minlength")}}

+

minlength

用户可以在搜索字段中输入的最小字符数(以 UTF-16 代码为单位)。 该值必须是小于或等于 maxlength 指定的值的非负整数值。 如果未指定 minlength 或指定了无效值,则搜索输入没有最小长度。

如果在字段中输入的文本的长度小于 minlength UTF-16 代码单元的长度,则搜索字段将无法通过约束验证(constraint validation)。

-

{{htmlattrdef("pattern")}}

+

pattern

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "pattern-include")}}

-

有关详细信息和示例,请参见 {{anch("Specifying a pattern")}} 部分。

+

有关详细信息和示例,请参见 指定模式 部分。

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "placeholder", 0, 1, 2)}}

@@ -126,7 +126,7 @@ translation_of: Web/HTML/Element/input/search

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "size", 0, 1, 2)}}

-

{{htmlattrdef("spellcheck")}}

+

spellcheck

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "spellcheck-include")}}

@@ -143,29 +143,29 @@ translation_of: Web/HTML/Element/input/search - {{anch("autocorrect")}} + autocorrect 编辑此输入字段时是否允许自动更正。Safari only. - {{anch("incremental")}} + incremental 是否发送重复的 {{event("search")}} 事件以允许在用户仍在编辑字段的值时更新实时搜索结果。WebKit and Blink only (Safari, Chrome, Opera, etc.). - {{anch("mozactionhint")}} + mozactionhint 一个字符串,指示当用户在编辑字段时按 Enter 或 Return 键时将执行的操作类型; 用于确定虚拟键盘上该键的适当标签。Firefox for Android only. - {{anch("results")}} + results 先前搜索查询的下拉列表中应显示的最大项目数。Safari only. -

{{htmlattrdef("autocorrect")}} {{non-standard_inline}}

+

autocorrect

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "autocorrect-include")}}

-

{{htmlattrdef("incremental")}} {{non-standard_inline}}

+

incremental

布尔值 incremental 属性是 WebKit 和 Blink 扩展 (因此被 Safari, Opera, Chrome 等支持)如果存在,它会告诉 {{Glossary("user agent")}} 将输入作为实时搜索进行处理。 当用户编辑字段的值时,用户代理将 {{event("search")}} 事件发送到代表搜索框的 {{domxref("HTMLInputElement")}} 对象。这允许您的代码在用户编辑搜索时实时更新搜索结果。

@@ -175,14 +175,14 @@ translation_of: Web/HTML/Element/input/search

search 事件受速率限制,因此发送事件的频率不会超过实现定义的间隔。

-

{{htmlattrdef("mozactionhint")}} {{non-standard_inline}}

+

mozactionhint

{{page("/zh-CN/docs/Web/HTML/Element/input/text", "mozactionhint-include")}}

-

{{htmlattrdef("results")}} {{non-standard_inline}}

+

results

-

results 属性是一个数字值(仅受 Safari 支持),可让您覆盖要在 {{HTMLElement("input")}} 元素的本机提供的先前搜索查询的下拉菜单中显示的最大条目数。

+

results 属性是一个数字值(仅受 Safari 支持),可让您覆盖要在 {{HTMLElement("input")}} 元素的本机提供的先前搜索查询的下拉菜单中显示的最大条目数。

该值必须是非负十进制数字。 如果未提供或给出了无效值,则使用浏览器的默认最大条目数。

-- cgit v1.2.3-54-g00ecf