diff options
author | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
---|---|---|
committer | Peter Bengtsson <mail@peterbe.com> | 2020-12-08 14:40:17 -0500 |
commit | 33058f2b292b3a581333bdfb21b8f671898c5060 (patch) | |
tree | 51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/html/element/isindex | |
parent | 8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff) | |
download | translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2 translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip |
initial commit
Diffstat (limited to 'files/zh-cn/web/html/element/isindex')
-rw-r--r-- | files/zh-cn/web/html/element/isindex/index.html | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/files/zh-cn/web/html/element/isindex/index.html b/files/zh-cn/web/html/element/isindex/index.html new file mode 100644 index 0000000000..6e1c99833d --- /dev/null +++ b/files/zh-cn/web/html/element/isindex/index.html @@ -0,0 +1,40 @@ +--- +title: <isindex> +slug: Web/HTML/Element/isindex +tags: + - HTML + - Web +translation_of: Web/HTML/Element/isindex +--- +<div>{{Deprecated_header}}</div> + +<h2 id="Summary" name="Summary">概述</h2> + +<p><code><strong><isindex>元素</strong>的作用是</code>使浏览器显示一个对话框,提示用户输入单行文本。在W3C的规范中建议,<code><isindex>元素最好被放置在</code> {{HTMLElement("head")}} 标签块内,但是对于浏览器来说,<isindex>标签在页面任何位置都没有关系。</p> + +<p>从HTML4规范开始,就不建议在您编写的HTML文档内使用<isindex>元素,您可以用<input>标签来替代。</p> + +<h2 id="Attributes" name="Attributes">属性</h2> + +<p>本元素支持 <a href="/en-US/docs/HTML/Global_attributes" title="HTML/Global attributes">全局属性</a>.</p> + +<dl> + <dt>{{htmlattrdef("prompt")}}</dt> + <dd>该属性用作在输入框前添加一个输入提示文本。</dd> + <dt>{{htmlattrdef("action")}}</dt> + <dd>本属性可以规定文本框中的值发送向一个没有被W3C规范的URL。</dd> +</dl> + +<h2 id="示例">示例</h2> + +<pre class="brush: html"><head> + <isindex prompt="Search Document... " /> +</head></pre> + +<h2 id="See_also" name="See_also">参阅</h2> + +<ul> + <li>{{HTMLElement("input")}}</li> +</ul> + +<p>{{HTMLRef}}</p> |