亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

搜索
博主信息
博文 11
粉絲 0
評論 0
訪問量 30417
最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板
利用Flex彈性盒子仿 m.php.cn首頁模板
飲雪煮茶
原創(chuàng)
1140人瀏覽過

html代碼

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>移動端通用布局參考Flex實現(xiàn)</title>
  6. <meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no,minimal-ui" />
  7. <meta name="applicable-device" content="mobile" />
  8. <link rel="stylesheet" href="./static/css/layui.css">
  9. <link rel="stylesheet" href="./static/css/index.css">
  10. </head>
  11. <body>
  12. <header>
  13. <img src="./static/picture/login.png" alt="" width="42" height="42">
  14. <img src="./static/picture/logo.png" alt="" width="94" height="45">
  15. <i class="layui-icon layui-icon-spread-left"></i>
  16. </header>
  17. <main>
  18. <header>
  19. <img src="./static/picture/6.png" alt="" width="100%" height="100%">
  20. </header>
  21. <nav>
  22. <span>
  23. <img src="./static/picture/html.png" alt="">
  24. <a href="">HTML/CSS</a>
  25. </span>
  26. <span>
  27. <img src="./static/picture/javascript.png" alt="">
  28. <a href="">JavaScript</a>
  29. </span>
  30. <span>
  31. <img src="./static/picture/code.png" alt="">
  32. <a href="">服務(wù)端</a>
  33. </span>
  34. <span>
  35. <img src="./static/picture/sql.png" alt="">
  36. <a href="">數(shù)據(jù)庫</a>
  37. </span>
  38. <span>
  39. <img src="./static/picture/app.png" alt="">
  40. <a href="">移動端</a>
  41. </span>
  42. <span>
  43. <img src="./static/picture/manual.png" alt="">
  44. <a href="">手冊</a>
  45. </span>
  46. <span>
  47. <img src="./static/picture/tool2.png" alt="">
  48. <a href="">工具</a>
  49. </span>
  50. <span>
  51. <img src="./static/picture/live.png" alt="">
  52. <a href="">直播</a>
  53. </span>
  54. </nav>
  55. <section>
  56. <h2>圖文列表</h2>
  57. <article>
  58. <section>
  59. <img src="./static/picture/5db2b53c67bca626.jpg" alt="" width="100%">
  60. </section>
  61. <section>
  62. <h3><a href="">CI框架30分鐘極速入門</a></h3>
  63. <p>本課程適合想從零開始學(xué)習(xí) Python 編程語言的開發(fā)人員。由淺入深的帶你進入p...</p>
  64. <section><span>初級</span><span>257106次播放</span></section>
  65. </section>
  66. </article>
  67. <article>
  68. <section>
  69. <img src="./static/picture/5db2b53c67bca626.jpg" alt="" width="100%">
  70. </section>
  71. <section>
  72. <h3><a href="">CI框架30分鐘極速入門</a></h3>
  73. <p>本課程適合想從零開始學(xué)習(xí) Python 編程語言的開發(fā)人員。由淺入深的帶你進入p...</p>
  74. <section><span>初級</span><span>257106次播放</span></section>
  75. </section>
  76. </article>
  77. <article>
  78. <section>
  79. <img src="./static/picture/5db2b53c67bca626.jpg" alt="" width="100%">
  80. </section>
  81. <section>
  82. <h3><a href="">CI框架30分鐘極速入門</a></h3>
  83. <p>本課程適合想從零開始學(xué)習(xí) Python 編程語言的開發(fā)人員。由淺入深的帶你進入p...</p>
  84. <section><span>初級</span><span>257106次播放</span></section>
  85. </section>
  86. </article>
  87. <article>
  88. <section>
  89. <img src="./static/picture/5db2b53c67bca626.jpg" alt="" width="100%">
  90. </section>
  91. <section>
  92. <h3><a href="">CI框架30分鐘極速入門</a></h3>
  93. <p>本課程適合想從零開始學(xué)習(xí) Python 編程語言的開發(fā)人員。由淺入深的帶你進入p...</p>
  94. <section><span>初級</span><span>257106次播放</span></section>
  95. </section>
  96. </article>
  97. <article>
  98. <section>
  99. <img src="./static/picture/5db2b53c67bca626.jpg" alt="" width="100%">
  100. </section>
  101. <section>
  102. <h3><a href="">CI框架30分鐘極速入門</a></h3>
  103. <p>本課程適合想從零開始學(xué)習(xí) Python 編程語言的開發(fā)人員。由淺入深的帶你進入p...</p>
  104. <section><span>初級</span><span>257106次播放</span></section>
  105. </section>
  106. </article>
  107. </section>
  108. </main>
  109. <footer>
  110. <a href=""><i class="layui-icon layui-icon-home"></i>首頁</a>
  111. <a href=""><i class="layui-icon layui-icon-play"></i>視頻</a>
  112. <a href=""><i class="layui-icon layui-icon-code-circle"></i>社區(qū)</a>
  113. <a href=""><i class="layui-icon layui-icon-username"></i>我的</a>
  114. </footer>
  115. </body>
  116. </html>

css代碼

  1. * {
  2. margin: 0;
  3. padding: 0;
  4. /*outline: 1px dashed;*/
  5. }
  6. a {
  7. color: #888;
  8. }
  9. body {
  10. display: flex;
  11. flex-direction: column;
  12. min-width: 360px;
  13. /*vh: view height, 可視區(qū)的高度*/
  14. /*vw: view width, 可視區(qū)的寬度*/
  15. height: 100vh;
  16. width: 100vw;
  17. /*box-sizing: border-box;*/
  18. /*參考背景*/
  19. /*background-color: #eeeeee;*/
  20. }
  21. body > header, body > footer {
  22. height: 8vh;
  23. /*background-color: lightblue;*/
  24. display: flex;
  25. justify-content: space-between;
  26. align-items: center;
  27. }
  28. body > header{
  29. background-color: #2d353c;
  30. box-shadow: 0 0 10px 1px rgba(7, 17, 27, .1);
  31. font-size: 19px;
  32. color: #fff;
  33. padding: 0 5px;
  34. }
  35. body > main {
  36. flex-grow: 1;
  37. overflow: auto;
  38. display: flex;
  39. flex-direction: column;
  40. }
  41. /*輪播*/
  42. body > main > header {
  43. min-height: 20vh;
  44. /*background-color: lightcyan;*/
  45. }
  46. /*導(dǎo)航區(qū)*/
  47. body > main > nav {
  48. margin-top: 1vh;
  49. min-height: 16vh;
  50. /*background-color: lightsteelblue;*/
  51. display: flex;
  52. flex-flow: row wrap;
  53. }
  54. body > main > nav > span {
  55. display: flex;
  56. flex-flow: column nowrap;
  57. width: 25vw;
  58. align-items: center;
  59. font-weight: 550;
  60. }
  61. body > main > nav > span > img{
  62. width: 45px;
  63. height: 45px;
  64. }
  65. /*主體內(nèi)容區(qū)*/
  66. body > main > section {
  67. display: flex;
  68. flex-direction: column;
  69. padding: 0 5px;
  70. }
  71. /*內(nèi)容區(qū)的標(biāo)題*/
  72. body > main > section > h2 {
  73. padding: 1vh;
  74. }
  75. /*內(nèi)容區(qū)的圖文列表詳情*/
  76. body > main > section > article {
  77. display: flex;
  78. flex-direction: row;
  79. margin: 1vh 0;
  80. }
  81. body > main > section > article > section:first-of-type {
  82. width: 30vw;
  83. height: 10vh;
  84. border: 1px solid gray;
  85. /*background-color: wheat;*/
  86. }
  87. body > main > section > article > section:last-of-type {
  88. /*將剩余空間全部分配給它*/
  89. flex: 1;
  90. /*background-color: lightcyan;*/
  91. margin-left: 1vw;
  92. color: #888;
  93. }
  94. body > main > section > article > section:last-of-type > h3{
  95. font-weight: 400;
  96. }
  97. body > main > section > article > section:last-of-type >section>p{
  98. font-size: 8px;
  99. }
  100. body > main > section > article > section:last-of-type >section>span:first-of-type{
  101. background-color: #595757;
  102. color: #fff;
  103. border-radius: 8px;
  104. padding: 3px;
  105. font-size: 10px;
  106. }
  107. body > main > section > article > section:last-of-type >section{
  108. display: flex;
  109. flex-flow: row nowrap;
  110. justify-content: space-between;
  111. }
  112. body > footer {
  113. background: #eee;
  114. display: flex;
  115. justify-content: space-around;
  116. }
  117. body > footer >a{
  118. display: flex;
  119. flex-flow: column nowrap;
  120. align-items: center;
  121. }

效果圖

批改老師:天蓬老師天蓬老師

批改狀態(tài):合格

老師批語:是不是寫起來很輕松呢
本博文版權(quán)歸博主所有,轉(zhuǎn)載請注明地址!如有侵權(quán)、違法,請聯(lián)系admin@php.cn舉報處理!
全部評論 文明上網(wǎng)理性發(fā)言,請遵守新聞評論服務(wù)協(xié)議
0條評論
關(guān)于我們 免責(zé)申明 意見反饋 講師合作 廣告合作 最新更新
php中文網(wǎng):公益在線php培訓(xùn),幫助PHP學(xué)習(xí)者快速成長!
關(guān)注服務(wù)號 技術(shù)交流群
PHP中文網(wǎng)訂閱號
每天精選資源文章推送
PHP中文網(wǎng)APP
隨時隨地碎片化學(xué)習(xí)
PHP中文網(wǎng)抖音號
發(fā)現(xiàn)有趣的

Copyright 2014-2025 http://ipnx.cn/ All Rights Reserved | php.cn | 湘ICP備2023035733號

  • 登錄PHP中文網(wǎng),和優(yōu)秀的人一起學(xué)習(xí)!
    全站2000+教程免費學(xué)