博客列表 >网站后台管理页面

网站后台管理页面

兰博
兰博原创
2022年10月20日 11:16:34480浏览

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. <link rel="stylesheet" href="static/css/admin.css" />
  9. </head>
  10. <body>
  11. <header>
  12. <h1>网站后台管理系统<small>(v1.0)</small></h1>
  13. <section>
  14. <em>admin</em>
  15. <button onclick="location.href='logout.php'">退出</button>
  16. </section>
  17. </header>
  18. <nav>
  19. <a href="../1017/demo1.html" target="content">元素属性</a>
  20. <a href="../1017/demo2.html" target="content">布局元素</a>
  21. <a href="../1017/demo3.html" target="content">图文列表</a>
  22. <a href="../1017/demo4.html" target="content">图片链接与列表</a>
  23. <a href="../1017/demo5.html" target="content">细说表格</a>
  24. <a href="../1018/demo1.html" target="content">表单元素与控件</a>
  25. <a href="demo1.html" target="content">音频与视频元素</a>
  26. </nav>
  27. <iframe src="default.html" name="content"></iframe>
  28. </body>
  29. </html>

CSS代码

  1. * {
  2. margin: 10;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. a {
  7. text-decoration: none;
  8. color: #555;
  9. }
  10. body {
  11. height: 100vh;
  12. width: 100vw;
  13. display: grid;
  14. grid-template-columns: 12em 1fr;
  15. grid-template-rows: 5em 1fr;
  16. }
  17. body header {
  18. grid-column-end: span 2;
  19. background-color: rgb(65, 65, 65);
  20. letter-spacing: 2px;
  21. padding: 2em;
  22. display: flex;
  23. place-items: center;
  24. }
  25. body header h1 {
  26. color: #fff;
  27. font-weight: 500;
  28. text-shadow: 1px 1px 1px #000;
  29. }
  30. body header section {
  31. margin-left: auto;
  32. padding-right: 2em;
  33. }
  34. body header section em {
  35. color: #eee;
  36. margin-right: 1em;
  37. }
  38. body header section button {
  39. padding: 3px 10px;
  40. border: none;
  41. outline: none;
  42. transition: 0.3s;
  43. }
  44. body header section button:hover {
  45. background-color: coral;
  46. color: #fff;
  47. cursor: pointer;
  48. }
  49. nav {
  50. display: grid;
  51. grid-auto-rows: min-content;
  52. border-right: 1px solid currentColor;
  53. background-color: rgb(233, 233, 233);
  54. padding: 1em;
  55. list-style: none;
  56. }
  57. nav a {
  58. padding: 0.5em 0;
  59. margin-bottom: 4px;
  60. background-color: rgb(202, 202, 202);
  61. border-left: 3px solid rgb(65, 65, 65);
  62. }
  63. nav a:hover {
  64. background-color: rgb(65, 65, 65);
  65. transition: 0.3s;
  66. font-size: 1.01em;
  67. color: rgb(255, 255, 255);
  68. }
  69. body iframe {
  70. width: calc(100vw - 10em);
  71. height: calc(100vh - 6em);
  72. border: none;
  73. background-color: #efefef;
  74. }
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议