欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

一个简易的课程表和注册表单

程序员文章站 2022-05-21 23:29:48
...

一个简易课程表和注册表单

  • 课程表代码
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>课程表</title>
  8. <style>
  9. table {
  10. color: green;
  11. text-align: center;
  12. font-size: 15px;
  13. }
  14. table caption {
  15. color: red;
  16. background-color: blue;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <!-- table>caption+(thead>tr>th{x}*8)+(tbody>tr*8>td{x}*8)+(tfoot>tr>td{x}*8)>div -->
  22. <table
  23. border="20"
  24. width="450"
  25. cellspacing="0"
  26. cellpadding="5"
  27. align="center"
  28. >
  29. <caption>
  30. xxx小学课表
  31. </caption>
  32. <thead>
  33. <tr>
  34. <th>时间</th>
  35. <th>周一</th>
  36. <th>周二</th>
  37. <th>周三</th>
  38. <th>周四</th>
  39. <th>周五</th>
  40. <th>周六</th>
  41. <th>周日</th>
  42. </tr>
  43. </thead>
  44. <tbody>
  45. <tr>
  46. <td rowspan="4">上午</td>
  47. <td>数学</td>
  48. <td>语文</td>
  49. <td>语文</td>
  50. <td>英语</td>
  51. <td>体育</td>
  52. <td>假期</td>
  53. <td>假期</td>
  54. </tr>
  55. <tr>
  56. <!-- <td>x</td> -->
  57. <td>语文</td>
  58. <td>法制</td>
  59. <td>科学</td>
  60. <td>数学</td>
  61. <td>数学</td>
  62. <td>假期</td>
  63. <td>假期</td>
  64. </tr>
  65. <tr>
  66. <!-- <td>x</td> -->
  67. <td>音乐</td>
  68. <td>语文</td>
  69. <td>英语</td>
  70. <td>电脑</td>
  71. <td>数学</td>
  72. <td>假期</td>
  73. <td>假期</td>
  74. </tr>
  75. <tr>
  76. <!-- <td>x</td> -->
  77. <td>数学</td>
  78. <td>数学</td>
  79. <td>语文</td>
  80. <td>语文</td>
  81. <td>音乐</td>
  82. <td>假期</td>
  83. <td>假期</td>
  84. </tr>
  85. <tr>
  86. <td colspan="8">中午休息</td>
  87. <!-- <td>x</td>
  88. <td>x</td>
  89. <td>x</td>
  90. <td>x</td>
  91. <td>x</td>
  92. <td>x</td>
  93. <td>x</td> -->
  94. </tr>
  95. <tr>
  96. <td rowspan="3">下午</td>
  97. <td>数学</td>
  98. <td>语文</td>
  99. <td>英语</td>
  100. <td>数学</td>
  101. <td>数学</td>
  102. <td>假期</td>
  103. <td>假期</td>
  104. </tr>
  105. <tr>
  106. <!-- <td>x</td> -->
  107. <td>数学</td>
  108. <td>数学</td>
  109. <td>数学</td>
  110. <td>数学</td>
  111. <td>数学</td>
  112. <td>假期</td>
  113. <td>假期</td>
  114. </tr>
  115. <tr>
  116. <!-- <td>x</td> -->
  117. <td>英语</td>
  118. <td>数学</td>
  119. <td>数学</td>
  120. <td>数学</td>
  121. <td>数学</td>
  122. <td>假期</td>
  123. <td>假期</td>
  124. </tr>
  125. </tbody>
  126. <tfoot>
  127. <tr>
  128. <td>备注:</td>
  129. <td colspan="7">每天下午15:30-17:30在学校写完作业才可以回家</td>
  130. <!-- <td>x</td>
  131. <td>x</td>
  132. <td>x</td>
  133. <td>x</td>
  134. <td>x</td>
  135. <td>x</td> -->
  136. </tr>
  137. </tfoot>
  138. </table>
  139. </body>
  140. </html>

预览图:一个简易的课程表和注册表单

  • 注册表单
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>form</title>
  8. </head>
  9. <body>
  10. <form action="verify.php" method="post">
  11. <fieldest class="group">
  12. <legend>用户注册:</legend>
  13. <div>
  14. <label for="username">username:</label
  15. ><input
  16. type="text"
  17. name="username"
  18. id="username"
  19. value=""
  20. placeholder="please input username"
  21. required
  22. autofocus
  23. />
  24. </div>
  25. <div>
  26. <label for="password">password:</label
  27. ><input
  28. type="password"
  29. name="password"
  30. id="password"
  31. value=""
  32. placeholder="please input password"
  33. required
  34. />
  35. </div>
  36. <div>
  37. <label for="email">email</label
  38. ><input
  39. type="email"
  40. name="email"
  41. id="email"
  42. value="xxxxxx@php.cn"
  43. placeholder="please input email"
  44. required
  45. />
  46. </div>
  47. <div>
  48. <label for="secret">请选择性别:</label>
  49. <input type="radio" name="gender" id="male" value="male" /><label
  50. for="male"
  51. ></label
  52. >
  53. <input type="radio" name="gender" id="female" value="female" /><label
  54. for="female"
  55. ></label
  56. >
  57. <input
  58. type="radio"
  59. name="gender"
  60. id="secret"
  61. value="secret"
  62. checked
  63. /><label for="secret">保密</label>
  64. </div>
  65. <div>
  66. <label for="">爱好:</label>
  67. <input
  68. type="checkbox"
  69. name="hobby[]"
  70. id="game"
  71. value="game"
  72. checked
  73. />
  74. <label for="game">游戏</label>
  75. <input
  76. type="checkbox"
  77. name="hobby[]"
  78. id="travel"
  79. value="travel"
  80. checked
  81. />
  82. <label for="travel">旅游</label>
  83. <input
  84. type="checkbox"
  85. name="hobby[]"
  86. id="shoot"
  87. value="shoot"
  88. checked
  89. />
  90. <label for="shoot">摄影</label>
  91. </div>
  92. <div>
  93. <label for="vip">请选择要开通的等级:</label>
  94. <select name="vip" id="vip">
  95. <option value="1">vip</option>
  96. <option value="2">svip</option>
  97. <option value="3" selected>life time vip</option>
  98. </select>
  99. </div>
  100. <button type="submit">提交</button>
  101. </fieldest>
  102. </form>
  103. </body>
  104. </html>

预览图:一个简易的课程表和注册表单