Blogger Information
Blog 31
fans 0
comment 0
visits 18336
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
前端框架封装与LayUI-九期线上班
Content っ
Original
554 people have browsed it

1.将phpcnui手册,使用Flex布局进行重写
HTML5部分

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>flex改写phpcnui</title>
  6. <link rel="stylesheet" href="static/css/style.css">
  7. <link rel="stylesheet" href="style1.css">
  8. </head>
  9. <body>
  10. <div>
  11. <div class="phpcn-row">
  12. <div class="phpcn-col-md-12 phpcn-bg-gray phpcn-p-10">
  13. <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>
  14. </div>
  15. </div>
  16. <div class="div1">
  17. <div class="div2">
  18. <ul class="left">
  19. <li><strong>前端基础</strong>
  20. <ul>
  21. <li><a href="base/1_框架安装.html" target="content">框架安装</a></li>
  22. <li><a href="base/2_页面结构.html" target="content">页面结构</a></li>
  23. <li><a href="base/3_常用标签.html" target="content">常用标签</a></li>
  24. <li><a href="base/4_CSS选择器.html" target="content">CSS选择器</a></li>
  25. <li><a href="base/5_CSS样式控制.html" target="content">CSS样式控制</a></li>
  26. <li><a href="base/6_CSS盒模型.html" target="content">CSS盒模型</a></li>
  27. <li><a href="base/7_CSS浮动与定位.html" target="content">CSS浮动与定位</a></li>
  28. <li><a href="base/8_CSS常用布局方式.html" target="content">CSS常用布局方式</a></li>
  29. <!-- <li><a href="">Flex弹性布局</a></li>-->
  30. <!-- <li><a href="">媒体查询</a></li>-->
  31. </ul>
  32. </li>
  33. <li><strong>框架组件</strong>
  34. <ul>
  35. <li><a href="component/1_栅格布局.html" target="content">栅格布局</a></li>
  36. <li><a href="component/2_常用样式.html" target="content">常用样式</a></li>
  37. <li><a href="component/3_文本与背景色.html" target="content">文本与背景色</a></li>
  38. <li><a href="component/4_表格.html" target="content">表格</a></li>
  39. <li><a href="component/5_分页条.html" target="content">分页条</a></li>
  40. </ul>
  41. </li>
  42. </ul>
  43. </div>
  44. <div class="phpcn-col-md10 phpcn-col-sm10 phpcn-p-30" style="min-height: 800px;" id="content">
  45. <!-- 文档内容区-->
  46. <iframe src="welcome.html" frameborder="0" name="content" width="100%" height="900"></iframe>
  47. </div>
  48. </div>
  49. <footer>
  50. <p class="phpcn-mb-10 phpcn-tx-c"><a href="https://www.php.cn/">php中文网</a>©版权所有(2019)</p>
  51. </footer>
  52. </div>
  53. </body>
  54. </html>

CSS部分

  1. /*设置整个内容容器*/
  2. .div1{
  3. display: flex;
  4. flex-flow: row nowrap;
  5. }
  6. /*//设置左边导航容器*/
  7. .div2{
  8. background-color: #ccc;
  9. width: 200px;
  10. }
  11. /*一级标题外边距*/
  12. .left > li{
  13. margin-left: 10px;
  14. }
  15. /*二级标题边距*/
  16. .left > li > ul{
  17. margin-left: 20px;
  18. }

效果图

2.二周前端总结感想

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