1.button:定义可点击的按钮(通常与 JavaScript 一起使用来启动脚本)。

<input id="" type="button" name="" value="按钮" /><br />

2.checkbox:定义复选框。

<input id="" type="checkbox" name="" />男<br />
<input id="" type="checkbox" name="" checked="checked" />女<br />

3.cancel:取消按钮,用于取消submit的提交。

<input id="" type="cancel" name="" />

4.color:定义拾色器。

<input id="" type="color" name="" />

5.date:定义 date 控件(包括年、月、日,不包括时间)。

<input id="" type="date" name="" />

6.datetime:定义 date 和 time 控件(包括年、月、日、时、分、秒、几分之一秒,基于 UTC 时区)。</p>

<form action="">
生日 (日期和时间):<input id="" type="datetime" name="" />
<input id="" type="submit" name="" value="提交" />
</form>

7.datetime-local:定义 date 和 time 控件(包括年、月、日、时、分、秒、几分之一秒,不带时区)。

<input id="" type="datetime-local" name="" />

8.month:定义 month 和 year 控件(不带时区)。

<input id="" type="month" name="" />

9.week:定义 week 和 year 控件(不带时区)。

<input id="" type="week" name="" />

10.time:定义用于输入时间的控件(不带时区)。

<input id="" type="time" name="" />

11.email:定义用于 e-mail 地址的字段。</p>

E-mail:<input id="" type="email" name="" />

12.file:定义文件选择字段和 "浏览..." 按钮,供文件上传。

<input id="" type="file" name="" />

13.hidden:定义隐藏输入字段。

<input id="" type="hidden" name="" />

14.image:定义图像作为提交按钮。

<input id="" type="image" name="" />

15.number:定义用于输入数字的字段。

<input id="" type="number" name="" />

16.password:定义密码字段(字段中的字符会被遮蔽)。

<input id="" type="password" name="" />

17.radio:定义单选按钮。<br />

<input id="" type="radio" name="" />男<br />
<input id="" type="radio" name="" checked="checked" />女<br />

18.range:定义用于精确值不重要的输入数字的控件(比如 slider 控件)。

<input id="" type="range" name="" /> 

19.reset:定义重置按钮(重置所有的表单值为默认值)。

<input id="" type="reset" name="" />

20.search:定义用于输入搜索字符串的文本字段。

<input id="" type="search" name="" />

21.submit:定义提交按钮。

<input id="" type="submit" name="" value="提交" />

22.tel:定义用于输入电话号码的字段。

输入电话:<input id="" type="tel" name="" />

23.text:默认。定义一个单行的文本字段(默认宽度为 20 个字符)。

<input id="" type="text" name="" />

24.url:定义用于输入 URL 的字段。

添加你的主页网址:<input id="" type="url" name="" />

转载:http://www.cnblogs.com/dadayang/p/5749068.html

Input:type属性的更多相关文章

  1. <input> type 属性

    单行文本域 语法格式:<input  type = “text” 属性 = “值” /> 常用属性 1  name:文本框的名字.命名规则是:可以包含字母.数字.下划线,只能以字母开头. ...

  2. input type属性为number时,去掉右边的上下箭头

    加上样式: input::-webkit-outer-spin-button, input::-webkit-inner-spin-button { -webkit-appearance: none; ...

  3. HTML中强大的input标签属性

    用了许久的html,<input>这个标签是最常用的标签之一. <input type="">标签中type属性是必不可少的,以往我最常用的有 type=& ...

  4. HTML5新增input标签属性

    一. input type属性 <form action=""> 邮箱<input type="email" name="" ...

  5. [Liferay6.2.2]AUI的小坑:input的type属性

    <aui:input name="name" label="姓名" value="<%=student.getName() %>&q ...

  6. 修改input的type属性

    在ff和chrome中是可以直接修改input的type属性的,但是在ie下面是不允许的. 用jquery 的attr方法去修改,在jquery1.8.3版本会直接抛出异常,但在1.9及以上版本就不再 ...

  7. input的type属性的修改

    记录一下成长的历程吧! 刚开始写,没什么文笔,也没什么技术含量,可能主要的是纪录一下平常工作学习中遇到的问题,以及解决的办法吧.或者只有问题,没有解决办法. 前两天项目中遇到的一个问题,由于之前一直没 ...

  8. HTML <input> 标签的 type 属性

    HTML <input> 标签的 type 属性 HTML <input> 标签 实例 下面的表单拥有两个输入字段以及一个提交按钮: <form action=" ...

  9. js修改input的type属性问题

    js修改input的type属性有些限制.当input元素还未插入文档流之前,是可以修改它的值的,在ie和ff下都没问题.但如果input已经存在于页面,其type属性在ie下就成了只读属性了,不可以 ...

  10. html5与js关于input[type='text']文本框value改变触发事件一些属性的区别oninput,onpropertychange,onchange和文本框的value点击全选状态onclick="select();"。做购物车页面时会要用到。

    关于input[type='text']文本框value改变触发事件一些属性的区别oninput,onpropertychange,onchange和文本框的点击全选状态onclick="s ...

随机推荐

  1. 最近工作中用到的Linux指定 PS Kill netstat解释

    1.ps详解点击如下链接 https://jingyan.baidu.com/article/fec4bce2479f05f2618d8b80.html 2.kill kill命令用来删除执行中的程序 ...

  2. clipboard.js实现页面内容复制到剪贴板

    clipboard.js实现复制内容到剪切板,它不依靠flash以及其他框架,应用起来比较简单 <input type="text" name="copy_txt& ...

  3. NX二次开发-UFUN工程图表格注释获取某一行的tag函数UF_TABNOT_ask_nth_row

    NX9+VS2012 #include <uf.h> #include <uf_tabnot.h> #include <NXOpen/Part.hxx> #incl ...

  4. csp-s模拟测试92

    csp-s模拟测试92 关于$T1$:最短路这一定建边最短路. 关于$T2$:傻逼$Dp$这一定线段树优化$Dp$. 关于$T3$:最小生成树+树P+换跟一定是这样. 深入(?)思考$T1$:我是傻逼 ...

  5. opencv-霍夫直线变换与圆变换

    转自:https://blog.csdn.net/poem_qianmo/article/details/26977557 一.引言 在图像处理和计算机视觉领域中,如何从当前的图像中提取所需要的特征信 ...

  6. centos7.5下coredns+etcd搭建DNS服务器

    coredns简介 安装etcd 安装coredns 设置域名解析 A记录 AAAA记录 CNAME记录 SRV记录 TXT记录 coredns简介 CoreDNS是一个DNS服务器,和Caddy S ...

  7. openstack nova 源码解析 — Nova API 执行过程从(novaclient到Action)

    目录 目录 Nova API Nova API 的执行过程 novaclient 将 Commands 转换为标准的HTTP请求 PasteDeploy 将 HTTP 请求路由到具体的 WSGI Ap ...

  8. spring配置hibernate的sessionFactory

    1.首先通过dataSource来配置sessionFactory <!--读入配置文件 --> <bean id="propertyConfigurer" cl ...

  9. windows下怎么给ubantu虚拟机全屏的处理

    ubantu版本时16.04 windows下窗口太小需要设置 相信很多人在装虚拟机的时候,遇到了窗口过小不能自适应的问题.我也是查了好多资料,都说安装Vmware Tools即可解决,还有说修改分辨 ...

  10. Extremely fast hash algorithm-xxHash

    xxHash - Extremely fast hash algorithm xxHash is an Extremely fast Hash algorithm, running at RAM sp ...