• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 众包
  • 赞助商
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
webkong
学什么不如写JS
博客园    首页    新随笔    联系   管理    订阅  订阅

Html的智能表单

-新的输入类型

-email
-url
-number
-range
-Date pickers ( date ,month ,week, time , datetime ,datetime-local )
-search
-color
-tel
 
Input Type -email 
-自动校验输入的是否是email
Email: <input type="email" name="user_email" />
 
Input Type -url
-自动将提交数据变成Url
Homepage: <input type="url" name="user_url" />
 
Input Type-number
-输入数字
Points: <input type="number" name="" value="2" min="1" max="10" />
 
Input Type -range
-选择一个范围内容的数字
<input type="range" name="points" min="1" max="10"/>
 
Input Type -Date pickers
-选择时间
-date -selects date,month  adn year
-month-selects month and year
-week -selects week and year
-time -selects time(hour and minute)
-datetime -selects time,date,month adn year (UTC time)
-datetime-local -selects time,date,month and year (local time)
 
 
 
 

-新元素

-客户端校验

webkong
posted @ 2015-03-05 17:35  webkong  阅读(235)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3