Blogger Information
Blog 53
fans 3
comment 0
visits 55163
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
Flex改写phpcnui手册的代码
邯郸易住宋至刚
Original
493 people have browsed it

Flex改写phpcnui手册的代码

HTML代码如下:

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>Flex内联框架布局网站后台</title>
  6. <link rel="stylesheet" href="css/style.css">
  7. </head>
  8. <body>
  9. <!--头部-->
  10. <header>
  11. <nav><h2>Flex内联框架布局网站后台</h2></nav>
  12. </header>
  13. <!--主体-->
  14. <main>
  15. <!--内联框架-->
  16. <!--srcdoc代替src, 可以在属性值中直接写html代码, 实现后台首页的功能-->
  17. <!--name属性非常重要, 它是链接到该框架页面的入口-->
  18. <iframe srcdoc="<h2>phpcn UI 用户参考手册</h2>" name="content" ></iframe>
  19. <!--侧边栏-->
  20. <aside>
  21. <!--HTML内联框架元素 (<iframe>)-->
  22. <!--将另一个HTML页面嵌入到当前页面中,而不是窗口中打开另一个网页, 类似画中画-->
  23. <ul>
  24. <li>
  25. <a href="phpcnui/welcome.html" target="content"><span><h3 style="color:black">欢迎使用</h3></span></a>
  26. </li>
  27. <li>
  28. <span><h3>前端基础</h3></span>
  29. <ul style="color: brown">
  30. <li><a href="phpcnui/base/1_框架安装.html" target="content">框架安装</a></li>
  31. <li><a href="phpcnui/base/2_页面结构.html" target="content">页面结构</a></li>
  32. <li><a href="phpcnui/base/3_常用标签.html" target="content">常用标签</a></li>
  33. <li><a href="phpcnui/base/4_CSS选择器.html" target="content">CSS选择器</a></li>
  34. <li><a href="phpcnui/base/5_CSS样式控制.html" target="content">CSS样式控制</a></li>
  35. <li><a href="phpcnui/base/6_CSS盒模型.html" target="content">CSS盒模型</a></li>
  36. <li><a href="phpcnui/base/7_CSS浮动与定位.html" target="content">CSS浮动与定位</a></li>
  37. <li><a href="phpcnui/base/8_CSS常用布局方式.html" target="content">CSS常用布局</a></li>
  38. </ul>
  39. </li>
  40. <li>
  41. <span><h3>框架要素</h3></span>
  42. <ul>
  43. <li><a href="phpcnui/component/1_栅格布局.html" target="content">格栅布局</a></li>
  44. <li><a href="phpcnui/component/2_常用样式.html" target="content">常用样式</a></li>
  45. <li><a href="phpcnui/component/3_文本与背景色.html" target="content">文本与背景色</a></li>
  46. <li><a href="phpcnui/component/4_表格.html" target="content">表格</a></li>
  47. <li><a href="phpcnui/component/5_分页条.html" target="content">分页条</a></li>
  48. </ul>
  49. </li>
  50. <li>
  51. <span><h3>框架扩展</h3></span>
  52. <ul>
  53. <li><a href="phpcnui/src/article.html" target="content">文章</a></li>
  54. <li><a href="phpcnui/src/form.html" target="content">表单</a></li>
  55. <li><a href="phpcnui/src/index.html" target="content">首页</a></li>
  56. <li><a href="phpcnui/src/list.html" target="content">列表</a></li>
  57. </ul>
  58. </li>
  59. <li>
  60. <a href="phpcnui/static/css/" target="content"><span><h3 style="color:black">静态资源</h3></span></a>
  61. </li>
  62. </ul>
  63. </aside>
  64. </main>
  65. <footer>Hhappysong Copyright Reserved</footer>
  66. </body>
  67. </html>

CSS代码如下:

  1. * {
  2. margin: 0;
  3. padding:0;
  4. }
  5. body {
  6. display: flex;
  7. flex-flow: column nowrap;
  8. }
  9. a {
  10. text-decoration: none;
  11. background-color: black;
  12. color: white;
  13. }
  14. ul li {
  15. /*height: 40px; */
  16. margin-top: 12px;
  17. margin-left: 20px;
  18. list-style: none;
  19. }
  20. nav,footer {
  21. width: 100%;
  22. height: 60px;
  23. background-color: lightskyblue;
  24. border: 1px solid yellow;
  25. box-sizing: border-box;
  26. display: flex;
  27. flex-flow: row nowrap;
  28. justify-content: center;
  29. align-items: center;
  30. }
  31. main {
  32. width: 100%;
  33. background-color: ghostwhite;
  34. border: 1px solid greenyellow;
  35. box-sizing: border-box;
  36. display: flex;
  37. flex-flow: row nowrap;
  38. }
  39. main aside {
  40. width: 200px;
  41. background-color: lightgreen;
  42. padding-top: 30px;
  43. display: flex;
  44. flex-flow: column nowrap;
  45. justify-content: flex-start;
  46. align-items: center;
  47. order: -1;
  48. /*flex: 1 1 auto;*/
  49. }
  50. main iframe {
  51. width: 100%;
  52. height: auto;
  53. background-color: wheat;
  54. overflow: hidden;
  55. }

运行结果如下图:

手抄代码如下:

Correcting teacher:查无此人查无此人

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