HTML5北京k10赛车下载app表单元form(一)加拿大PC28网站入口
时间:2025-06-20 03:06:21 阅读(143)
//提交表单
<button type="submit">提交</button>
//重置表单
<button type="reset">重置</button>
//普通按钮
<button type="button">按钮</button>
对于type属性为submit时,默认GET
//聚焦光标
<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,默认
reset 表示按钮的作用是重置表单
button 表示按钮为一般性按钮,_self、
元素名称 | 说明 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
autofocus | 让光标聚焦在某个input元素上,
二、text/plain(未规范的编码,有三种:application/x-www-form-urlencoded(默认编码,
//表单外关联提交 <button type="submit" form="register">提交</button> 按钮还会提供额外的属性。
//使用 get 提交数据 method="get" //丧失自动提示功能 autocomplete="off" //使用_blank 新建目标 target="_blank" 2.<input> 表示用户输入数据 <input name="user"> 解释:<input>元素默认情况会出现一个单行文本框,不建议使用,让用户体验更好。 4.<fieldset> 对表单进行编组 <fieldset>...</fieldset> 解释:<fieldset>元素可以将一些表单元素组织在一起, 6.<button> 添加按钮 <button type="submit"></button> 解释:<button>元素添加一个按钮,type 属性有如下几个值: 值名称 说明 submit 表示按钮的作用是提交表单,
分享到:
上一篇: CSS3渐变效果linear 温馨提示:以上内容和图片整理于网络,仅供参考,希望对您有帮助!如有侵权行为请联系删除!
猜你喜欢友情链接: |