博客列表 >1108作业

1108作业

遗忘了寂寞
遗忘了寂寞原创
2019年11月09日 09:51:55892浏览

phpcnUI用户手册首页弹性布局改造

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>phpcnUI用户手册</title>
  6. <link rel="stylesheet" href="static/css/style.css">
  7. <style type="text/css">
  8. body{
  9. display: flex;
  10. flex-flow:column nowrap;
  11. height: 100vh;
  12. }
  13. main{
  14. flex: 1;display: flex;
  15. flex-flow: row nowrap;
  16. }
  17. header{height: 80px;}
  18. footer{height: 50px;}
  19. header,footer{
  20. box-sizing: border-box;
  21. line-height: 60px;
  22. width: 100%;
  23. box-sizing: border-box;
  24. padding: 0px 20px;
  25. display: flex;
  26. background: #D4D4D4;
  27. }
  28. header > h3{flex: 1;}
  29. main > aside{
  30. box-sizing: border-box;
  31. padding: 20px 0px;
  32. width: 200px;
  33. background: #EEEEEE;
  34. display: flex;
  35. flex-flow:column nowrap;
  36. }
  37. main > aside > a{
  38. height: 40px;
  39. line-height: 40px;
  40. padding: 5px 20px;
  41. text-align: center;
  42. }
  43. main > aside > a:hover{
  44. }
  45. main > artical{
  46. flex: 1;
  47. }
  48. main > aside:first-of-type {
  49. order: -1;
  50. }
  51. footer > span{flex: 1;}
  52. footer > a{
  53. padding: 0 10px;
  54. color: #ccc;
  55. }
  56. main > artical{
  57. display: flex;
  58. justify-content: center;
  59. align-items: center;
  60. }
  61. </style>
  62. </head>
  63. <body>
  64. <!-- 头部 -->
  65. <header>
  66. <h1 class="phpcn-color-deepgray phpcn-ml-40" ><span class="phpcn-color-coral" style="text-shadow: 2px 2px 1px #333; font-weight: bolder">phpcn UI</span> 用户参考手册</h1>
  67. </header>
  68. <!-- 主本 -->
  69. <main>
  70. <aside>
  71. <ul class="phpcn-p-30 phpcn-lh-normal phpcn-ml-20" id="nav" >
  72. <li style="cursor: pointer;"><strong>前端基础</strong>
  73. <ul class="phpcn-ml-20 phpcn-dl-n" >
  74. <li><a href="base/1_框架安装.html" target="content">框架安装</a></li>
  75. <li><a href="base/2_页面结构.html" target="content">页面结构</a></li>
  76. <li><a href="base/3_常用标签.html" target="content">常用标签</a></li>
  77. <li><a href="base/4_CSS选择器.html" target="content">CSS选择器</a></li>
  78. <li><a href="base/5_CSS样式控制.html" target="content">CSS样式控制</a></li>
  79. <li><a href="base/6_CSS盒模型.html" target="content">CSS盒模型</a></li>
  80. <li><a href="base/7_CSS浮动与定位.html" target="content">CSS浮动与定位</a></li>
  81. <li><a href="base/8_CSS常用布局方式.html" target="content">CSS常用布局方式</a></li>
  82. <!-- <li><a href="">Flex弹性布局</a></li>-->
  83. <!-- <li><a href="">媒体查询</a></li>-->
  84. </ul>
  85. </li>
  86. <li style="cursor: pointer;"><strong>框架组件</strong>
  87. <ul class="phpcn-ml-20 phpcn-dl-n">
  88. <li><a href="component/1_栅格布局.html" target="content">栅格布局</a></li>
  89. <li><a href="component/2_常用样式.html" target="content">常用样式</a></li>
  90. <li><a href="component/3_文本与背景色.html" target="content">文本与背景色</a></li>
  91. <li><a href="component/4_表格.html" target="content">表格</a></li>
  92. <li><a href="component/5_分页条.html" target="content">分页条</a></li>
  93. </ul>
  94. </li>
  95. </ul>
  96. </aside>
  97. <artical>
  98. <iframe src="welcome.html" name="content" style="width: 100%;height: 99.6%;" frameborder="0" marginwidth="0" marginheight="0" ></iframe>
  99. </artical>
  100. </main>
  101. <!-- 底部 -->
  102. <footer>
  103. <p class="phpcn-mb-10 phpcn-tx-c"><a href="https://www.php.cn/">php中文网</a>©版权所有(2019)</p>
  104. </footer>
  105. <script>
  106. // 控制导航折叠
  107. var menus = document.querySelectorAll('#nav > li');
  108. menus.forEach(function (menu){
  109. menu.firstElementChild.addEventListener('click', function (evt) {
  110. evt.target.nextElementSibling.classList.toggle('phpcn-dl-n');
  111. }, false);
  112. });
  113. </script>
  114. </body>
  115. </html>

这两周所学知识汇总


















声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议