HTML <button> 标签的 type 属性
来源:互联网 发布:淘宝最好的外贸原单店 编辑:程序博客网 时间:2024/04/19 10:46
定义和用法
type 属性规定按钮的类型。
提示:请始终为按钮规定 type 属性。Internet Explorer 的默认类型是 “button”,而其他浏览器中(包括 W3C 规范)的默认值是 “submit”。
语法
<button type="value">
submit 该按钮是提交按钮(除了 Internet Explorer,该值是其他浏览器的默认值)。
button 该按钮是可点击的按钮(Internet Explorer 的默认值)。
reset 该按钮是重置按钮(清除表单数据)。
注意: type IE的默认值是 button ,其他浏览器的默认值是 submit ,所以在使用时最好指定 type 的值。
0 0
- HTML <button> 标签的 type 属性
- button标签的type属性
- HTML语言button标签type属性问题
- HTML标签的type属性
- HTML<button> 标签和<input type="button">的区别
- HTML <input> 标签的 type 属性
- HTML <input> 标签的 type 属性
- HTML <ol> 标签的 type 属性
- HTML <input> 标签的 type 属性
- HTML <input> 标签的 type 属性
- html input标签的type属性的使用
- <button>标签:请始终为按钮规定 type 属性
- button标签和input type=button的区别
- HTML<button>和<input type="button"> 的区别
- HTML<button>和<input type="button"> 的区别
- HTML<button>和<input type="button"> 的区别
- html表单的type属性
- html中input标签type=text的只读属性readonly和autocomplete
- OS X中多PHP环境与Nginx配置问题
- 如何分清JSON解析什么时候该用JSONObject,什么时候该用JSONArray。
- maven-compiler-plugin 指定JDK版本和编码
- 获取当前控制器
- java线程停止问题
- HTML <button> 标签的 type 属性
- RxJava操作符(一)Creating Observables
- 7则心理寓言故事
- [php函数]--数组函数--array_chunk
- cxf+Spring的webservice应用
- NodeJS 使用Stream 方式 copy 大文件
- 第二种方法制作三角
- 如何发布Node模块到NPM社区
- API Guides(六)—— Create a Search Interface To Drag and Drop