CSS3 表单

 <form action="http://baidu.com">
   <input type="text" placeholder="请输入用户名" required> <!-- 想兼容 Lable 做 for id-->
   <input type="email" autofocus="true">
   <input type="tel" pattern="\d{1,5}">
   <input type="number">
   <input type="text">
   <input type="url">
   <input type="search">
   <input type="range" min="0" max="100" value="0" step="50">
   <input type="color" id="c">
  <input type="datetime">
  <input type="datetime-local">
  <input type="time">
  <input type="date">
  <input type="week">
  <input type="month">
  <input type="text" autocomplete="off">
  <input type="submit" value="提交" formaction="http://jd.com" >
</form>

 

posted @ 2018-11-09 14:31  Dyla  阅读(100)  评论(0编辑  收藏  举报