Blogger Information
Blog 10
fans 0
comment 0
visits 4860
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
1018表单作业
onbind
Original
354 people have browsed it

表单

  1. <style>
  2. .box{width: 400px;}
  3. .pt{padding-top: 20px;}
  4. .pt:last-child{padding-bottom: 20px;}
  5. </style>
  6. <div class="box">
  7. <form action="http://www.baidu.com/index.php" method="get">
  8. <fieldset>
  9. <legend>用户注册</legend>
  10. <div class="pt">
  11. <label for="userName">用户名:</label>
  12. <input type="text" name="" id="userName" min="6" max="18" placeholder="请输入用户名">
  13. </div>
  14. <div class="pt">
  15. <label for="password">密码:</label>
  16. <input type="password" name="" id="password" min="6" max="18" placeholder="请输入密码">
  17. </div>
  18. <div class="pt">
  19. <label for="woman">年龄:</label>
  20. <input type="radio" name="age" id="man" value="man">
  21. <input type="radio" name="age" id="woman" value="woman" checked>
  22. </div>
  23. <div class="pt">
  24. <label for="">来源:</label>
  25. <input type="checkbox" name="gos[]" id="web" value="web" checked>网页
  26. <input type="checkbox" name="gos[]" id="init" value="init">信息
  27. <input type="checkbox" name="gos[]" id="road" value="road">路边
  28. </div>
  29. <div class="pt">
  30. <label for="">专业:</label>
  31. <select name="" id="">
  32. <option value="0" disabled selected>--请选择--</option>
  33. <option value="1">小学</option>
  34. <option value="2">初中</option>
  35. <option value="3">高中</option>
  36. <option value="4">大学</option>
  37. </select>
  38. </div>
  39. <div class="pt">
  40. <label for="range">等级:</label>
  41. <input type="range" name="range" id="range" min="1" max="5" value="1" step="1" />
  42. </div>
  43. <div class="pt">
  44. <label for="number">手机号:</label>
  45. <input type="number" name="number" id="number" />
  46. </div>
  47. <div class="pt">
  48. <button>提交</button>
  49. </div>
  50. </fieldset>
  51. </form>
  52. </div>

效果图:
表单

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:整体不错,只是有点稍显简单了,继续加油
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post