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/html/element/isindex/index.html | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 files/zh-cn/web/html/element/isindex/index.html (limited to 'files/zh-cn/web/html/element/isindex') 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: +slug: Web/HTML/Element/isindex +tags: + - HTML + - Web +translation_of: Web/HTML/Element/isindex +--- +
{{Deprecated_header}}
+ +

概述

+ +

<isindex>元素的作用是使浏览器显示一个对话框,提示用户输入单行文本。在W3C的规范中建议,<isindex>元素最好被放置在 {{HTMLElement("head")}} 标签块内,但是对于浏览器来说,<isindex>标签在页面任何位置都没有关系。

+ +

从HTML4规范开始,就不建议在您编写的HTML文档内使用<isindex>元素,您可以用<input>标签来替代。

+ +

属性

+ +

本元素支持 全局属性.

+ +
+
{{htmlattrdef("prompt")}}
+
该属性用作在输入框前添加一个输入提示文本。
+
{{htmlattrdef("action")}}
+
本属性可以规定文本框中的值发送向一个没有被W3C规范的URL。
+
+ +

示例

+ +
<head>
+  <isindex prompt="Search Document... " />
+</head>
+ +

参阅

+ + + +

{{HTMLRef}}

-- cgit v1.2.3-54-g00ecf