zoukankan      html  css  js  c++  java
  • 08 H5新增input元素

    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5</title>   
    </head>
    <body>
    	在android和ios中尤其能体现这些输入控件的特点,会自动切换到不同的虚拟键盘!
        <hr>
    <form>
    	查询文本框
    	<input type="search" placeholder="请输入查询关键字" autofocus>
        <hr>
        列表提示
    	<input type="text"  list="searchlist">
        <datalist id="searchlist">
        	<option value="beijing" label="北京" />
        	<option value="shanghai" label="上海" />
            <option value="nanjing" label="南京" />               
            <option value="nanchang" label="南昌"/>
     	</datalist>
        <hr>
    	数字文本框
    	<input type="number" max="9" min="0" step="1"/>
        <hr>
    	滑动条
    	<input type="range" max="9" min="0" step="1" value="2">
        <hr>
    	颜色文本框
    	<input type="color" value="#ff00ff"/>
        <hr>
    	电话文本框
        <input type="tel">
        <hr>
        网址输入
        <input type="url">
        <hr>
        邮箱地址
        <input type="email">
        <hr>
        日期选择
        <input type="date" max="2012-10-10" min="2001-01-01"  value="2011-01-01" />
    	<hr>
        时间选择
        <input type="time" max="18:39:57" min="17:49:57"  value="17:49:58" />
        <hr>
        UTC日期时间
        <input type="datetime" />
    	<hr>
        本地日期时间
        <input type="datetime-local" />
    	<hr/>
    	<input type="submit" value="submit"/>
    	<p>H5中新增的input元素只有在点击提交按钮时,才有效果</p>
    </form>	
    </body>
    </html>
    

      

  • 相关阅读:
    What's the difference between tilde(~) and caret(^) in package.json?
    腾迅股票数据接口
    dddd
    https://wrapbootstrap.com
    http://tpl.amazeui.org/
    http://www.ajaxload.info/
    基于Sublime Text搭建Python IDE
    IDAPython: importing “site” failed
    IDA_Python命令行使用
    “error LNK2019: 无法解析的外部符号”之分析
  • 原文地址:https://www.cnblogs.com/1020182600HENG/p/7076970.html
Copyright © 2011-2022 走看看