Blogger Information
Blog 19
fans 1
comment 0
visits 13307
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
前端2周基础学习总结--php培训第九期线上班
涤尘
Original
584 people have browsed it

1. Flex改写phpcnui手册

  1. <html>
  2. <head>
  3. <meta charset="utf-8">
  4. <title>PHPuicn框架</title>
  5. <link rel="stylesheet" type="text/css" href="css/style.css">
  6. </head>
  7. <body>
  8. <header>
  9. <div class="header">
  10. <span>phpcn UI </span>
  11. <h5>用户参考手册</h5>
  12. </div>
  13. </header>
  14. <main>
  15. <div class="left">
  16. <ul>
  17. <h4>前端基础</h4>
  18. <li><a href="base/1_框架安装.html" target="content">框架安装</a></li>
  19. <li><a href="base/2_页面结构.html" target="content">页面结构</a></li>
  20. <li><a href="base/3_常用标签.html" target="content">常用标签</a></li>
  21. <li><a href="base/4_CSS选择器.html" target="content">CSS选择器</a></li>
  22. <li><a href="base/5_CSS样式控制.html" target="content">CSS样式控制</a></li>
  23. <li><a href="base/6_CSS盒模型.html" target="content">CSS盒模型</a></li>
  24. <li><a href="base/7_CSS浮动与定位.html" target="content">CSS浮动与定位</a></li>
  25. <li><a href="base/8_CSS常用布局方式.html" target="content">CSS常用布局方式</a></li>
  26. </ul>
  27. <h4>框架组件</h4>
  28. <ul>
  29. <li><a href="component/1_栅格布局.html" target="content">栅格布局</a></li>
  30. <li><a href="component/2_常用样式.html" target="content">常用样式</a></li>
  31. <li><a href="component/3_文本与背景色.html" target="content">文本与背景色</a></li>
  32. <li><a href="component/4_表格.html" target="content">表格</a></li>
  33. <li><a href="component/5_分页条.html" target="content">分页条</a></li>
  34. </ul>
  35. <span>php中文网©版权所有(2019)</span>
  36. </div>
  37. <iframe src="welcome.html" frameborder="0" name="content" width="100%" height="900px"></iframe>
  38. </main>
  39. </body>
  40. </html>
  1. * {
  2. padding: 0;
  3. margin: 0;
  4. list-style: none;
  5. text-decoration: none;
  6. }
  7. body {
  8. display: flex;
  9. flex-flow: column nowrap;
  10. }
  11. header {
  12. display: flex;
  13. height: 60px;
  14. background-color: #919191;
  15. }
  16. header > .header {
  17. display: flex;
  18. flex-flow: row nowrap;
  19. margin-left: 30px;
  20. margin-top: 10px;
  21. }
  22. header > .header > span {
  23. color: #FFA722;
  24. font-size: 30px;
  25. font-weight: bold;
  26. }
  27. header > .header > h5 {
  28. color: #3C3C3C;
  29. font-size: 30px;
  30. margin-left: 5px;
  31. }
  32. main {
  33. display: flex;
  34. flex:1;
  35. }
  36. main > .left {
  37. display: flex;
  38. flex-flow: column wrap;
  39. width: 240px;
  40. padding-top:30px;
  41. padding-left: 30px;
  42. background-color: #EEEEEE;
  43. }
  44. main > .left > ul > li {
  45. margin-left: 22px;
  46. margin-top: 5px;
  47. }
  48. main > .left > h4:last-of-type {
  49. padding-top: 5px;
  50. }
  51. main > .left > ul > li > a {
  52. color: black;
  53. font-size: 0.8rem;
  54. }
  55. main > .left > ul > li >a:hover {
  56. background:linear-gradient(#0099FF, white);
  57. }
  58. main > .left > span {
  59. font-size: smaller;
  60. margin-top: auto;
  61. padding-right: 10px;
  62. }
  63. main > iframe {
  64. margin-left: 70px;
  65. margin-top:45px;
  66. }

内容页代码如下

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>首页</title>
  6. <link rel="stylesheet" href="css/style2.css">
  7. </head>
  8. <body>
  9. <h2>phpcn UI 框架特点:</h2>
  10. <h4>遵循HTML5/CSS3/ES5/6编程规范, 具有如下特点:</h5>
  11. <ul>
  12. <li><strong>免费开源:</strong> 您不需要付任何费用, 就可以用在你的项目或商业应用中</li>
  13. <li><strong>简洁高效:</strong> 秉承大道至简原则, 一切为开发者服务, 在不失功能前提下进行最大程序的简化</li>
  14. <li><strong>易学好用:</strong> 开箱即用, 学习门槛极低, 优雅易记的命名规范, 方便您的二次开发与扩展</li>
  15. </ul>
  16. </body>
  17. </html>
  1. * {
  2. padding: 0;
  3. margin:0;
  4. }
  5. body{
  6. display: flex;
  7. flex-flow: column nowrap;
  8. margin-top: 60px;
  9. margin-left: 40px;
  10. }
  11. body > h2 {
  12. color: blue;
  13. }
  14. body > h4 {
  15. margin-top: 30px;
  16. color: #808080;
  17. }
  18. body > ul {
  19. margin-top: 20px;
  20. list-style: none;
  21. font-size: 16px;
  22. }
  23. body > ul > li {
  24. margin-top: 10px;
  25. }

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