博客列表 >flex布局仿京东移动端首页

flex布局仿京东移动端首页

a.
a.原创
2021年01月01日 13:01:48978浏览

效果图


html代码

  1. a<!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  6. <title>仿京东首页</title>
  7. <link rel="stylesheet" href="static/css/index.css" />
  8. <link rel="stylesheet" href="static/css/header.css" />
  9. <link rel="stylesheet" href="static/css/slide.css" />
  10. <link rel="stylesheet" href="static/css/nav.css" />
  11. <link rel="stylesheet" href="static/css/haohuo.css" />
  12. </head>
  13. <body>
  14. <header class="header">
  15. <div class="menu iconfont icon-caidan"></div>
  16. <div class="search">
  17. <div class="logo">JD</div>
  18. <div class="zoom iconfont icon-sousuo"></div>
  19. <input class="words" type="text" value="iphone12" /></div>
  20. </div>
  21. <div class="login">登录</div>
  22. </header>
  23. <div class="slide">
  24. <div class="img"><img src="https://m.360buyimg.com/mobilecms/s700x280_jfs/t1/130573/4/17560/124669/5fc2626cE4d3682e1/df08fc1bf4c5ae08.jpg!cr_1125x445_0_171!q70.jpg.dpg"></div>
  25. <div class="focus-slide">
  26. <span></span>
  27. <span></span>
  28. <span></span>
  29. <span></span>
  30. </div>
  31. </div>
  32. <main class="main">
  33. <ul class="nav">
  34. <!-- 第一组 -->
  35. <li>
  36. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/125678/35/5947/4868/5efbf28cEbf04a25a/e2bcc411170524f0.png" /></a>
  37. <span>京东超市</span>
  38. </li>
  39. <li>
  40. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/135931/4/3281/5598/5efbf2c0Edbdc82c7/ed9861b4ddfb9f30.png" /></a>
  41. <span>数码电器</span>
  42. </li>
  43. <li>
  44. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/140012/8/1804/3641/5efbf318E38bd5dad/0db99d859ab16ce9.png" /></a>
  45. <span>京东服饰</span>
  46. </li>
  47. <li>
  48. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/129215/21/5978/3618/5efbf344Ebec23ae8/59712d986b10bb0a.png" /></a>
  49. <span>京东生鲜</span>
  50. </li>
  51. <li>
  52. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/116602/7/11200/3796/5efbf375Ebba41029/f07cc166f368fa05.png" /></a>
  53. <span>京东到家</span>
  54. </li>
  55. <li>
  56. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/146390/3/1846/4909/5efbf39aEe5f5f797/300071558a9ab078.png" /></a>
  57. <span>充值缴费</span>
  58. </li>
  59. <li>
  60. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/143365/25/1824/3716/5efbf3c0E5175e1fb/88f6227257a29f1d.png" /></a>
  61. <span>9.9元拼</span>
  62. </li>
  63. <li>
  64. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/113589/24/11332/4897/5efbf3feE705d87db/e5c12d5e943266b9.png" /></a>
  65. <span>领券</span>
  66. </li>
  67. <li>
  68. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/129184/28/5977/3711/5efbf53aE2c2e6a07/7db529ce0e00838f.png" /></a>
  69. <span>借钱</span>
  70. </li>
  71. <li>
  72. <a href=""><img src="https://m.360buyimg.com/mobilecms/s120x120_jfs/t1/123730/37/5924/4189/5efbf567E0a226121/d04df7c74c87cf68.png" /></a>
  73. <span>Plus会员</span>
  74. </li>
  75. </ul>
  76. <div class="haohuo">
  77. <div class="title">
  78. <a href="#"><h3>来电好货</h3></a>
  79. <a href="#"><h3>国潮风尚</h3></a>
  80. </div>
  81. <ul>
  82. <li><a href=""><span>正品直邮</span><img src="https://m.360buyimg.com/mobilecms/s150x150_jfs/t1/122304/6/4867/26484/5ee73aa3E8a601402/04d440839b734589.png!q70.jpg.dpg"></a></li>
  83. <li><a href=""><span>3C大放价</span><img src="https://m.360buyimg.com/mobilecms/s150x150_jfs/t1/146350/29/713/33082/5ee73d9fE1ae995ad/0ec365679efbf615.png!q70.jpg.dpg"></a></li>
  84. <li><a href=""><span>国货正当时</span><img src="https://m.360buyimg.com/mobilecms/s150x150_jfs/t1/121172/17/1584/29106/5ebd1637Ec4c82232/aa56520b3ab276be.png!q70.jpg.dpg"></a></li>
  85. <li><a href=""><span>都是你爱的</span><img src="https://m.360buyimg.com/mobilecms/s150x150_jfs/t1/141856/19/761/28886/5ee73fa2E4401ba28/9386324f55097e7b.jpg!q70.jpg.dpg"></a></li>
  86. </ul>
  87. </div>
  88. <div class="ms">
  89. <div class="ms-head">
  90. <div class="ms-top">
  91. <div class="jdms">京东秒杀</div>
  92. <div class="notice">
  93. <div class="tips">22点场</div>
  94. <div class="time">01:11:22</div>
  95. </div>
  96. </div>
  97. <div class="right">更多秒杀</div>
  98. </div>
  99. <div class="ms-body">
  100. <ul class="ms-list">
  101. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  102. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  103. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  104. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  105. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  106. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  107. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  108. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  109. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  110. <li><a href="#"><img src="https://img11.360buyimg.com/n7/s150x150_jfs/t1/152555/5/11538/63661/5fe59ce8Ef83f10f9/fb4c1690583b2612.jpg.dpg"><span class="yj">¥399</span><span class="xj">¥199</span></a></li>
  111. </ul>
  112. </div>
  113. </div>
  114. <div class="love">
  115. <img src="http://img12.360buyimg.com/img/s750x70_jfs/t1/148857/1/16777/13220/5fc9f9d0E734c0ee5/88c99cdbe410e58a.png" alt="">
  116. <ul class="love-list">
  117. <li>
  118. <a href="">
  119. <img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt="">
  120. <span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span>
  121. <div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  122. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  123. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  124. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  125. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  126. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  127. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  128. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  129. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  130. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  131. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  132. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  133. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  134. <li><a href=""><img src="https://img10.360buyimg.com/mobilecms/s372x372_jfs/t1/163748/34/162/262841/5fed47c1E0a55c930/3dbc5349f6dd8c3a.jpg!q70.dpg.webp" alt=""><span class="title">骆驼户外羽绒服女秋冬新款保暖防寒防风中长款男外套 A0W1R4114 幻影黑 女 M</span><div class="price"><span>¥599</span><span>看相似</span></div></a></li>
  135. </ul>
  136. </div>
  137. </main>
  138. <footer class="footer">
  139. <ul>
  140. <li><a href=""><img src="https://img11.360buyimg.com/jdphoto/s130x100_jfs/t1/81741/30/12345/4140/5d9c4b13E726f0a1e/82c582e7c375e4b3.png"></a></li>
  141. <li><a href=""><img src="https://img11.360buyimg.com/jdphoto/s130x100_jfs/t1/56507/6/12787/3168/5d9c4b12Ef363dd8d/4af32f42575509d8.png"></a></li>
  142. <li><a href=""><img src="https://img11.360buyimg.com/jdphoto/s130x100_jfs/t1/70651/38/12417/3194/5d9d3eafE12cde68b/2467c20113c50451.png"></a></li>
  143. <li><a href=""><img src="https://img11.360buyimg.com/jdphoto/s130x100_jfs/t1/64954/4/12406/3529/5d9c4b12Ee7a82735/f2fe0a88bf344736.png"></a></li>
  144. <li><a href=""><img src="https://img11.360buyimg.com/jdphoto/s130x100_jfs/t1/68400/36/12368/3153/5d9c4b13E0e0d80a8/876c40f17d91ce44.png"></a></li>
  145. </ul>
  146. </footer>
  147. </body>
  148. </html>

CSS代码

reset

  1. * {
  2. margin: 0;
  3. padding: 0;
  4. box-sizing: border-box;
  5. }
  6. :root {
  7. font-size: 10px;
  8. }
  9. li {
  10. list-style: none;
  11. }
  12. a {
  13. color: #7b7b7b;
  14. text-decoration: none;
  15. }
  16. body {
  17. background-color: antiquewhite;
  18. font-size: 10px;
  19. }
  20. /* @media screen and (min-width: 440px) {
  21. html {
  22. font-size: 10px;
  23. }
  24. }
  25. @media screen and (min-width: 480px) {
  26. html {
  27. font-size: 12px;
  28. }
  29. }
  30. @media screen and (min-width: 640px) {
  31. html {
  32. font-size: 14px;
  33. }
  34. }
  35. @media screen and (min-width: 720px) {
  36. html {
  37. font-size: 16px;
  38. }
  39. } */

header

  1. @import url(https://at.alicdn.com/t/font_2289194_lcufc1dn8s.css);
  2. .header {
  3. display: flex;
  4. align-items: center;
  5. justify-content: space-between;
  6. }
  7. .header .menu {
  8. color: #fff;
  9. text-align: center;
  10. font-size: 2.4rem;
  11. margin: 0 1rem;
  12. }
  13. .header .login {
  14. color: #fff;
  15. margin: 0 1.5rem;
  16. }
  17. .header .search {
  18. flex: auto;
  19. text-align: center;
  20. padding: 0.5rem;
  21. background-color: white;
  22. border-radius: 3rem;
  23. display: flex;
  24. }
  25. .header .search .logo {
  26. color: #e43130;
  27. flex: 0 1 4rem;
  28. font-size: 1.6rem;
  29. text-align: center;
  30. line-height: 2rem;
  31. }
  32. /* 放大镜 */
  33. .header .search .zoom {
  34. color: #ccc;
  35. flex: 0 1 4rem;
  36. border-left: 1px solid;
  37. text-align: center;
  38. line-height: 2rem;
  39. }
  40. .header .search .words {
  41. flex: auto;
  42. border: none;
  43. outline: none;
  44. color: #aaa;
  45. }

haohuo

  1. .haohuo {
  2. background-color: #fff;
  3. /*border:solid 1px red;*/
  4. margin: 1rem;
  5. min-width: 400px;
  6. }
  7. .haohuo .title {
  8. display: flex;
  9. justify-content: center;
  10. }
  11. .haohuo .title a {
  12. margin: 1rem;
  13. }
  14. .haohuo .title a h3 {
  15. color: black;
  16. }
  17. .haohuo ul {
  18. display: flex;
  19. justify-content: space-evenly;
  20. padding-bottom: 1rem;
  21. }
  22. .haohuo ul li a {
  23. /*border: 1px red solid;*/
  24. display: flex;
  25. flex-flow: column nowrap;
  26. justify-content: center;
  27. align-items: center;
  28. color: rgb(31, 29, 29);
  29. }
  30. .haohuo ul a img {
  31. width: 8rem;
  32. }

nav

  1. .main .nav {
  2. /* background-color: rgb(255, 255, 255); */
  3. padding: 1rem;
  4. display: flex;
  5. flex-flow: wrap;
  6. justify-content: space-between;
  7. }
  8. .main .nav img {
  9. height: 4rem;
  10. width: 4rem;
  11. }
  12. .main .nav li {
  13. /* 第一行显示5个,每个分配20% */
  14. flex: 1 1 20%;
  15. display: flex;
  16. padding: 1rem;
  17. flex-flow: column nowrap;
  18. align-items: center;
  19. }

ms

  1. .main .ms {
  2. background-color: #fff;
  3. padding: 1rem;
  4. margin: 1rem 0;
  5. }
  6. .main .ms .ms-top {
  7. font-size: 1.3rem;
  8. height: 3rem;
  9. }

index

  1. @import "reset.css";
  2. .header {
  3. background-color: #c31130;
  4. color: white;
  5. height: 4.4rem;
  6. position: fixed;
  7. top: 0;
  8. left: 0;
  9. right: 0;
  10. bottom: 0;
  11. font-size: 1.4rem;
  12. min-width: 400px;
  13. }
  14. .footer {
  15. color: #666;
  16. background-color: #fafafa;
  17. color: white;
  18. height: 5rem;
  19. box-shadow: 0 0 3px #999;
  20. position: fixed;
  21. bottom: 0;
  22. left: 0;
  23. right: 0;
  24. font-size: 1.4rem;
  25. min-width: 400px;
  26. }
  27. .slide {
  28. /* position: relative; */
  29. margin-top: 3.2rem;
  30. min-width: 400px;
  31. }
  32. .main {
  33. /* position: absolute; */
  34. margin-top: 1.8rem;
  35. /* bottom: 4.4rem; */
  36. min-width: 400px;
  37. left: 0;
  38. right: 0;
  39. height: 100rem;
  40. font-size: 1.4rem;
  41. }
  42. .ms {
  43. margin: 1rem;
  44. border-radius: 10px;
  45. background-color: white;
  46. display: flex;
  47. flex-flow: column nowrap;
  48. }
  49. .ms .ms-head {
  50. display: flex;
  51. justify-content: space-between;
  52. align-items: center;
  53. }
  54. .ms > .ms-head > .ms-top {
  55. background: url(../images/index.png) no-repeat;
  56. background-size: cover;
  57. display: flex;
  58. align-items: center;
  59. justify-content: center;
  60. }
  61. .ms > .ms-head > .ms-top > .jdms {
  62. font-size: 1.8rem;
  63. margin: 0.7rem 1.5rem;
  64. }
  65. .ms > .ms-head > .ms-top > .notice {
  66. display: flex;
  67. align-items: center;
  68. justify-content: center;
  69. border: 1px red solid;
  70. border-radius: 10px;
  71. height: 2.2rem;
  72. }
  73. .ms > .ms-head > .ms-top > .notice > .tips {
  74. background-color: red;
  75. border: 1px red solid;
  76. border-radius: 10px;
  77. padding: 0 0.5rem;
  78. color: white;
  79. }
  80. .ms > .ms-head > .ms-top > .notice > .time {
  81. padding: 0 1rem;
  82. }
  83. .ms > .ms-head .right {
  84. padding-right: 2rem;
  85. font-size: 1.6rem;
  86. color: red;
  87. }
  88. .ms > .ms-body > .ms-list {
  89. padding: 1rem 0;
  90. display: flex;
  91. flex-flow: row nowrap;
  92. overflow: auto;
  93. }
  94. .ms > .ms-body > .ms-list li a {
  95. display: flex;
  96. flex-flow: column nowrap;
  97. align-items: center;
  98. }
  99. .ms > .ms-body > .ms-list li a span {
  100. font-size: 2rem;
  101. }
  102. .ms > .ms-body > .ms-list li a .yj {
  103. /* color: red; */
  104. text-decoration: line-through;
  105. }
  106. .ms > .ms-body > .ms-list li a .xj {
  107. color: red;
  108. }
  109. .love img {
  110. width: 100%;
  111. text-align: center;
  112. }
  113. .love > .love-list {
  114. display: flex;
  115. flex-flow: row wrap;
  116. margin: 0 1rem;
  117. }
  118. .love > .love-list li {
  119. border-radius: 20px;
  120. background-color: white;
  121. max-width: 400px;
  122. flex: 1 1 48%;
  123. margin: 1rem 0.5rem;
  124. padding: 0 0 1.5rem 0;
  125. }
  126. .love > .love-list li a {
  127. display: flex;
  128. flex-flow: column nowrap;
  129. }
  130. .love > .love-list li a img {
  131. border-radius: 20px;
  132. max-width: 400px;
  133. }
  134. .love > .love-list li a .price {
  135. display: flex;
  136. justify-content: space-between;
  137. }
  138. .love > .love-list li a .price span:first-of-type {
  139. padding-left: 1rem;
  140. color: red;
  141. font-size: 2rem;
  142. }
  143. .love > .love-list li a .title {
  144. padding: 1rem;
  145. }
  146. .love > .love-list li a .price span:last-of-type {
  147. background-color: #ccc;
  148. color: white;
  149. font-size: 1.5rem;
  150. border-start-start-radius: 10px;
  151. border-end-start-radius: 010px;
  152. }
  153. .footer ul {
  154. display: flex;
  155. justify-content: space-evenly;
  156. }
  157. .footer ul li {
  158. align-items: flex-end;
  159. }
  160. .footer ul li a img {
  161. width: 6rem;
  162. }

slide

  1. .slide .img img {
  2. width: 100%;
  3. }
  4. .slide > .focus-slide {
  5. display: flex;
  6. margin-top: -3rem;
  7. justify-content: center;
  8. }
  9. .slide > .focus-slide span {
  10. background-color: rgb(255, 255, 255);
  11. width: 1rem;
  12. height: 1rem;
  13. /* border: red solid 1px; */
  14. border-radius: 3rem;
  15. margin: 0 1rem;
  16. }
声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议