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

表格课程表/表单登录

程序员文章站 2022-05-26 12:44:37
...

课程表

表格课程表/表单登录

  1. <!DOCTYPE html>
  2. <html lang="en">
  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. margin: 0 auto;
  11. text-align:center;
  12. border-collapse: collapse;
  13. }
  14. table th,td {
  15. border: 1px solid #e7ecf1;
  16. padding:10px;
  17. }
  18. </style>
  19. </head>
  20. <body>
  21. <table>
  22. <caption>
  23. <h3>课程表</h3>
  24. </caption>
  25. <thead>
  26. <tr>
  27. <th>时间</th>
  28. <th>星期一</th>
  29. <th>星期二</th>
  30. <th>星期三</th>
  31. <th>星期四</th>
  32. <th>星期五</th>
  33. <th>星期六</th>
  34. <th>星期日</th>
  35. </tr>
  36. </thead>
  37. </tobody>
  38. <tr>
  39. <td colspan="8" >上午</td>
  40. </tr>
  41. <tr>
  42. <td></td>
  43. <td>英语</td>
  44. <td>语文</td>
  45. <td>美术</td>
  46. <td>文体活动</td>
  47. <td>品德与生活</td>
  48. <td rowspan="3" >加班</td>
  49. <td rowspan="3">加班</td>
  50. </tr>
  51. <tr>
  52. <td></td>
  53. <td>英语</td>
  54. <td>语文</td>
  55. <td>美术</td>
  56. <td>文体活动</td>
  57. <td>品德与生活</td>
  58. </tr>
  59. <tr>
  60. <td></td>
  61. <td>英语</td>
  62. <td>语文</td>
  63. <td>美术</td>
  64. <td>文体活动</td>
  65. <td>品德与生活</td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. </body>
  70. </html>

登录

表格课程表/表单登录

  1. <!DOCTYPE html>
  2. <html lang="en">
  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. .content{
  10. text-align: center;
  11. padding-top: 150px;
  12. width:500px;
  13. margin:0 auto;
  14. }
  15. .form-group{
  16. padding:10px 0;
  17. }
  18. input{
  19. width: 98%;
  20. height: 34px;
  21. padding: 1%;
  22. background-color: #fff;
  23. border: 1px solid #E4E6EF;
  24. color: #3F4254;
  25. background-clip: padding-box;
  26. border-radius: 4px;
  27. }
  28. button{
  29. width: 100%;
  30. margin-bottom: 0;
  31. font-weight: 400;
  32. text-align: center;
  33. cursor: pointer;
  34. border: 1px solid transparent;
  35. padding: 12px;
  36. font-size: 14px;
  37. border-radius: 4px;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="content">
  43. <form class="form" action="" method="post">
  44. <div class="form-group">
  45. <input class="input" type="text" value="" placeholder="账号" name="username">
  46. </div>
  47. <div class="form-group">
  48. <input class="input" type="text" value="" placeholder="密码" name="password">
  49. </div>
  50. <div class="submit">
  51. <button type="submit"> 登录后台 </button>
  52. </div>
  53. </form>
  54. </div>
  55. </body>
  56. </html>