Blogger Information
Blog 38
fans 0
comment 0
visits 18871
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
登录表单、简单后台架构、演示元素样式来源与优先级
Blackeye
Original
503 people have browsed it

part1

  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>hw03-18</title>
  8. </head>
  9. <body>
  10. <!-- part_1 登录表单 -->
  11. <form action="">
  12. <div class="input">
  13. <div>
  14. <label for="email">邮箱:</label>
  15. <input type="email" id="email" name="email" value="" placeholder="abc123@example.com">
  16. </div>
  17. <div>
  18. <label for="pwd">密码:</label>
  19. <input type="password" id="pwd" name="password" value="" placeholder="请输入密码">
  20. </div>
  21. </div>
  22. <button>登录</button>
  23. </form>
  24. </body>
  25. </html>

part1

part2

  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>hw03-18</title>
  8. <style>
  9. body {
  10. height: 100vh;
  11. width: 100vw;
  12. display: grid;
  13. grid-template-columns: 10em 1fr;
  14. grid-template-rows: 6em 1fr;
  15. margin: 0;
  16. }
  17. body .header {
  18. grid-column-end: span 2;
  19. border-bottom: 1px solid currentColor;
  20. background-color: rgb(0, 0, 0, 0.5);
  21. padding: 2em;
  22. display: flex;
  23. align-items: center;
  24. }
  25. body .header div {
  26. margin-left: auto;
  27. }
  28. body .nav {
  29. background-color: #efc;
  30. margin: 0;
  31. padding-top: 1em;
  32. list-style: none;
  33. }
  34. body iframe {
  35. width: calc(100vw - 10em);
  36. height: calc(100vh - 6em);
  37. border-left: 1px solid currentColor;
  38. }
  39. </style>
  40. </head>
  41. <body>
  42. <div class="header">
  43. <h1>管理后台</h1>
  44. <div>
  45. <span>admin</span>
  46. <a href="">退出</a>
  47. </div>
  48. </div>
  49. <ul class="nav">
  50. <li><a href="https://j.map.baidu.com/b9/yd" target="showBox">地图1</a></li>
  51. <li><a href="https://j.map.baidu.com/b9/yd" target="showBox">地图2</a></li>
  52. <li><a href="https://j.map.baidu.com/b9/yd" target="showBox">地图3</a></li>
  53. <li><a href="https://j.map.baidu.com/b9/yd" target="showBox">地图4</a></li>
  54. </ul>
  55. <iframe src="" frameborder="2" name="showBox"></iframe>
  56. </body>
  57. </html>

part2

part3

  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>hw03-18</title>
  8. <link rel="stylesheet" href="hw1.css">
  9. </head>
  10. <body>
  11. <h1>Hello</h1>
  12. <h1 style="color: red;">Hello</h1>
  13. <h1 style="color: red;"><p style="color: blue;">Hello</p></h1>
  14. <div class="v1">
  15. <h1>Hello</h1>
  16. </div>
  17. </body>
  18. </html>
  1. .v1{
  2. color: yellow;
  3. }

part3

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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!