Blogger Information
Blog 10
fans 0
comment 0
visits 4719
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
form表单标签及常用属性应用
P粉854918706
Original
374 people have browsed it

用户注册表单

  1. <form action="regit.php" method="post" align="center">
  2. <h2>用户注册界面</h2>
  3. <div>
  4. <label for="username">用户名:</label>
  5. <input type="text" id="username" name="username" placeholder="用户名不能为空" autofocus>
  6. </div>
  7. <div style="margin-left: 15px;">
  8. <label for="psw">密码:</label>
  9. <input type="password" name="password" id="psw" placeholder="6位不含特殊字符">
  10. </div>
  11. <div style="margin-left: 15px;">
  12. <label for="male">性别:</label>
  13. <input type="radio" name="sex" id="male" value="male" checked><label for="male"></label>
  14. <input type="radio" name="sex" id="female" value="female"><label for="female"></label>
  15. <input type="radio" name="sex" id="secret" value="secret"><label for="secret"> 不想说</label>
  16. </div>
  17. <div style="margin-left: -70px;">
  18. <label for="">学历:</label>
  19. <select name="edu" id="">
  20. <option value="" selected disabled>--请选择--</option>
  21. <option value="hs">高中</option>
  22. <option value="ug">大学</option>
  23. <option value="mas">硕士</option>
  24. <option value="doc">博士</option>
  25. </select>
  26. </div>
  27. <div>
  28. <label for="">特长:</label>
  29. <input type="checkbox" name="spi[]" id="sing" value="sing" checked><label for="sing"> 唱歌</label>
  30. <input type="checkbox" name="spi[]" id="dance" value="dance"><label for="dance"> 跳舞</label>
  31. <input type="checkbox" name="spi[]" id="eat" value="eat"><label for="eat"> 吃饭</label>
  32. <input type="checkbox" name="spi[]" id="joke" value="joke"><label for="joke"> 吹牛</label>
  33. </div>
  34. <div>
  35. <button>注册</button>
  36. </div>
  37. </form>

后台首页

  1. <style>
  2. .header {
  3. width: 100%;
  4. height: 70px;
  5. background: rgb(93, 206, 235);
  6. text-align: center;
  7. font-size: 30px;
  8. font-weight: bolder;
  9. padding-top: 15px;
  10. }
  11. .header.nav {
  12. text-align: right;
  13. font-size: smaller;
  14. font-weight: 100;
  15. }
  16. .content{
  17. width: 100%;
  18. margin-top: 35px;
  19. }
  20. .content.left{
  21. float: left;
  22. width: 20%;
  23. background: rgb(241, 151, 237);
  24. height: 500px;
  25. }
  26. .content.right{
  27. float: right;
  28. width: 80%;
  29. background: rgb(126, 247, 166);
  30. height: 500px;
  31. }
  32. </style>
  33. <div class="header">
  34. CMS后台管理系统
  35. <div class="header nav">
  36. <em>admin</em>&nbsp;<a href="">注销</a>
  37. </div>
  38. </div>
  39. <br>
  40. <div class="content left">
  41. <dl>
  42. <dt></dt>
  43. <dd><a href="../0704/demo3.html" target="content">表格元素</a></dd>
  44. <dd><a href="../0704/demo5.html" target="content">列表图片</a></dd>
  45. <dd><a href="../0704/demo6.html" target="content">标题元素</a></dd>
  46. <dd><a href="../0704/demo3.html" target="content">表格元素</a></dd>
  47. </dl>
  48. </div>
  49. <div class="content right">
  50. <iframe srcdoc=" <a href='javascript:;'>请点击左边导航栏试试看</a>" frameborder="0" width="100%" height="100%" name="content"></iframe>
  51. </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