HTML5网上正规靠谱的apc28下载g平台表单元form(一)
//使用 get 提交数据
method="get"
//丧失自动提示功能
autocomplete="off"
//使用_blank 新建目标
target="_blank"
2.<input> 表示用户输入数据
<input name="user">
解释:<input>元素默认情况会出现一个单行文本框,按钮还会提供额外的属性。multipart/form-data(用于上传文件到服务器)、
元素名称 | 说明 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
autofocus | 让光标聚焦在某个input元素上,且更加容易设置 CSS 样式。表单元素总汇 在HTML5的表单中,实现自动完成表单。 4.<fieldset> 对表单进行编组 <fieldset>...</fieldset> 解释:<fieldset>元素可以将一些表单元素组织在一起,
//聚焦光标 <input name="user" autofocus> //禁用 input <input name="user" disabled> //禁止自动完成 <input name="user" autocomplete="off"> //表单外的 input <form method="get" id="register"> ... </form> <input name="email" form="register"> 3.<label> 添加说明标签 <p>label for="user">用户名:input id="user" name="user"></label></p> 解释:<label>元素可以关联 input,不能将文件上传到服务器)、形成一个整体。让用户直接输入 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
disabled | 禁用input元素 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
autocomplete | 单独设置input元素的自动完成功能 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
form | 让表单外的元素和指定的表单挂钩提交 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
type | input元素的类型。 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
name | 定义input元素的名称,以便程序调用 | ||||||||||||||||||||||||||||||||||||||||||||||||||||
target | 设置提交时的目标位置:_blank、
本文地址:http://qh98c.xny028cc.com/pot/2025-06-18-19-24-27-3.html版权声明本文仅代表作者观点,不代表本站立场。
×
|