input type 使用

type属性值

  • hidden: 隐藏.
  • text:文本
  • search:搜索
  • tel
  • url
  • email
  • password:密码
  • date:日期选择器
  • month:月份选择器
  • week:周选择器
  • time:时间选择器
  • datetime-local:日期时间选择器
  • number:数字。
  • range:范围滑块。
  • color:颜色选择器。
  • checkbox:复选框。
  • radio:单选框。
  • file:文件选择。
  • submit:提交按钮。
  • image:可点击的图片按钮。
  • reset:重置按钮。
  • button:按钮。
posted @ 2021-06-07 13:48  shellon  阅读(57)  评论(0编辑  收藏  举报