Blogger Information
Blog 10
fans 0
comment 0
visits 5473
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
简单的后台框架
土老帽
Original
562 people have browsed it

简单的后台框架

效果图

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. 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: #008ead;
  21. padding: 2em;
  22. display: flex;
  23. align-items: center;
  24. color: #fff;
  25. }
  26. body .header div {
  27. margin-left: auto;
  28. }
  29. body .nav {
  30. background-color: #efc;
  31. margin: 0;
  32. padding-top: 1em;
  33. list-style: none;
  34. }
  35. body iframe {
  36. width: calc(100vw - 10em);
  37. height: calc(100vh - 6em);
  38. border-left: 1px solid currentColor;
  39. }
  40. </style>
  41. </head>
  42. <body>
  43. <!-- 顶部 -->
  44. <div class="header">
  45. <h2>管理后台</h2>
  46. <div>用户名:admin</div>
  47. <a href="">退出</a>
  48. </div>
  49. <!-- 左侧导航 -->
  50. <!-- li*5>a[href="demo$.html" target="content"]{菜单项$} -->
  51. <ul class="nav">
  52. <li><a href="demo1.html" target="content">菜单项1</a></li>
  53. <li><a href="demo2.html" target="content">菜单项2</a></li>
  54. <li><a href="demo4.html" target="content">菜单项3</a></li>
  55. <li><a href="demo5.html" target="content">菜单项4</a></li>
  56. <li><a href="demo6.html" target="content">菜单项5</a></li>
  57. </ul>
  58. <!-- 右侧内容 -->
  59. <iframe srcdoc="<h2 style='color:red'>欢迎光临...</h2>" frameborder="1" name="content"></iframe>
  60. </body>
  61. </html>
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