博客列表 >模仿苏X易购手机主页布局

模仿苏X易购手机主页布局

Pharaoh
Pharaoh原创
2022年07月19日 06:07:52424浏览

实例

为了方便直接在我的博客站里创建了子目录方便观看

DEMO网站,请用手机打开http://blog.sofresh.top/0718/suning.html

代码

  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8" />
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge" />
  6. <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  7. <title>苏X易购</title>
  8. <link rel="stylesheet" href="css/style.css" />
  9. </head>
  10. <body>
  11. <!-- 页头 -->
  12. <header>
  13. <div class="background-top">
  14. <img
  15. src="https://image3.suning.cn/uimg/cms/img/161243730178975729.png"
  16. alt=""
  17. />
  18. </div>
  19. <div class="nav">
  20. <div class="nav-wrapper">
  21. <div>
  22. <span class="iconfont icon-fenlei"></span>
  23. <span>分类</span>
  24. </div>
  25. <a href=""
  26. ><img
  27. src="https://image1.suning.cn/uimg/cms/img/165813309260916633.gif"
  28. alt=""
  29. /></a>
  30. <div>
  31. <span class="iconfont icon-jurassic_user"></span>
  32. <span>登录</span>
  33. </div>
  34. </div>
  35. <a href="" class="search">
  36. <span class="iconfont icon-fangdajing"></span>
  37. <span>空调</span>
  38. </a>
  39. </div>
  40. </header>
  41. <!-- 主体 -->
  42. <main>
  43. <div class="background-bottom">
  44. <img
  45. src="https://image1.suning.cn/uimg/cms/img/161243731909884312.png"
  46. alt=""
  47. />
  48. <div>
  49. <img
  50. src="https://oss.suning.com/adpp/creative_kit/material/picture/20220718-5e33f32d56f14669a7c810402f2497898d7794dcb6184c30.jpg?format=_is_1242w_610h"
  51. alt=""
  52. />
  53. </div>
  54. </div>
  55. <div class="nav">
  56. <div class="item">
  57. <a href=""
  58. ><img
  59. src="https://image2.suning.cn/uimg/cms/img/165710989476671143.png?from=mobile"
  60. alt=""
  61. /></a>
  62. <a href="">苏宁家电</a>
  63. </div>
  64. <div class="item">
  65. <a href=""
  66. ><img
  67. src="https://image1.suning.cn/uimg/cms/img/161293951076282456.png?from=mobile"
  68. alt=""
  69. /></a>
  70. <a href="">苏宁超市</a>
  71. </div>
  72. <div class="item">
  73. <a href=""
  74. ><img
  75. src="https://image1.suning.cn/uimg/cms/img/161294179334814175.png?from=mobile"
  76. alt=""
  77. /></a>
  78. <a href="">苏宁宜品</a>
  79. </div>
  80. <div class="item">
  81. <a href=""
  82. ><img
  83. src="https://image1.suning.cn/uimg/cms/img/161293957567317395.png?from=mobile"
  84. alt=""
  85. /></a>
  86. <a href="">手机数码</a>
  87. </div>
  88. <div class="item">
  89. <a href=""
  90. ><img
  91. src="https://image1.suning.cn/uimg/cms/img/165711026680588659.png?from=mobile"
  92. alt=""
  93. /></a>
  94. <a href="">家居家装</a>
  95. </div>
  96. <div class="item">
  97. <a href=""
  98. ><img
  99. src="https://image1.suning.cn/uimg/cms/img/165717934177245432.png?from=mobile"
  100. alt=""
  101. /></a>
  102. <a href="">服装百货</a>
  103. </div>
  104. <div class="item">
  105. <a href=""
  106. ><img
  107. src="https://image1.suning.cn/uimg/cms/img/165717927411065855.png?from=mobile"
  108. alt=""
  109. /></a>
  110. <a href="">生活家电</a>
  111. </div>
  112. <div class="item">
  113. <a href=""
  114. ><img
  115. src="https://image1.suning.cn/uimg/cms/img/161293963977525820.png?from=mobile"
  116. alt=""
  117. /></a>
  118. <a href="">签到有礼</a>
  119. </div>
  120. <div class="item">
  121. <a href=""
  122. ><img
  123. src="https://image1.suning.cn/uimg/cms/img/161293965567020138.png?from=mobile"
  124. alt=""
  125. /></a>
  126. <a href="">领券中心</a>
  127. </div>
  128. <div class="item">
  129. <a href=""
  130. ><img
  131. src="https://image1.suning.cn/uimg/cms/img/161293968063152286.png?from=mobile"
  132. alt=""
  133. /></a>
  134. <a href="">更多频道</a>
  135. </div>
  136. </div>
  137. <div class="hot">
  138. <div class="item">
  139. <h3>苏宁特卖</h3>
  140. <p>大牌折扣天天有</p>
  141. <a>
  142. <img
  143. src="https://image1.suning.cn/uimg/cms/img/165710962835761144.jpg?format=_is_200w_200h.webp"
  144. alt=""
  145. /><img
  146. src="https://image1.suning.cn/uimg/cms/img/165710963417239634.jpg?format=_is_200w_200h.webp"
  147. alt=""
  148. />
  149. </a>
  150. </div>
  151. <div class="item">
  152. <h3>苏宁特卖</h3>
  153. <p>大牌折扣天天有</p>
  154. <a>
  155. <img
  156. src="https://image1.suning.cn/uimg/cms/img/165710962835761144.jpg?format=_is_200w_200h.webp"
  157. alt=""
  158. /><img
  159. src="https://image1.suning.cn/uimg/cms/img/165710963417239634.jpg?format=_is_200w_200h.webp"
  160. alt=""
  161. />
  162. </a>
  163. </div>
  164. <div class="item">
  165. <h3>苏宁特卖</h3>
  166. <p>大牌折扣天天有</p>
  167. <a>
  168. <img
  169. src="https://image1.suning.cn/uimg/cms/img/165710962835761144.jpg?format=_is_200w_200h.webp"
  170. alt=""
  171. /><img
  172. src="https://image1.suning.cn/uimg/cms/img/165710963417239634.jpg?format=_is_200w_200h.webp"
  173. alt=""
  174. />
  175. </a>
  176. </div>
  177. <div class="item">
  178. <h3>苏宁特卖</h3>
  179. <p>大牌折扣天天有</p>
  180. <a>
  181. <img
  182. src="https://image1.suning.cn/uimg/cms/img/165710962835761144.jpg?format=_is_200w_200h.webp"
  183. alt=""
  184. /><img
  185. src="https://image1.suning.cn/uimg/cms/img/165710963417239634.jpg?format=_is_200w_200h.webp"
  186. alt=""
  187. />
  188. </a>
  189. </div>
  190. </div>
  191. <h3>推荐榜单</h3>
  192. <div class="recommend">
  193. <div>
  194. <a href=""
  195. ><img
  196. src="https://image.suning.cn/uimg/b2c/qrqm/0070221259000000010588681602.jpg?format=_is_200w_200h_4e.webp"
  197. alt=""
  198. /></a>
  199. <span>人气榜</span>
  200. <div>
  201. <a href=""><p>多功能接线板榜</p></a>
  202. <a href=""><span>卖爆350件</span></a>
  203. </div>
  204. </div>
  205. <div>
  206. <a href=""
  207. ><img
  208. src="https://image.suning.cn/uimg/b2c/qrqm/0070221259000000010588681602.jpg?format=_is_200w_200h_4e.webp"
  209. alt=""
  210. /></a>
  211. <span>人气榜</span>
  212. <div>
  213. <a href=""><p>多功能接线板榜</p></a>
  214. <a href=""><span>卖爆350件</span></a>
  215. </div>
  216. </div>
  217. <div>
  218. <a href=""
  219. ><img
  220. src="https://image.suning.cn/uimg/b2c/qrqm/0070221259000000010588681602.jpg?format=_is_200w_200h_4e.webp"
  221. alt=""
  222. /></a>
  223. <span>人气榜</span>
  224. <div>
  225. <a href=""><p>多功能接线板榜</p></a>
  226. <a href=""><span>卖爆350件</span></a>
  227. </div>
  228. </div>
  229. </div>
  230. <div class="guesslike">
  231. <a href=""
  232. ><img
  233. src="https://image3.suning.cn/uimg/cms/img/157793128909842388.png?format=_is_1242w_100h.webp"
  234. alt=""
  235. /></a>
  236. </div>
  237. <div class="list">
  238. <ul class="left">
  239. <li>
  240. <a href=""
  241. ><img
  242. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  243. alt=""
  244. /></a>
  245. <div class="title">
  246. <a href=""
  247. >惠普
  248. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  249. >
  250. </div>
  251. <div>
  252. <a href=""><span>自营</span> <span>大聚惠</span></a>
  253. </div>
  254. <div>
  255. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  256. </div>
  257. </li>
  258. <li>
  259. <a href=""
  260. ><img
  261. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  262. alt=""
  263. /></a>
  264. <div class="title">
  265. <a href=""
  266. >惠普
  267. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  268. >
  269. </div>
  270. <div>
  271. <a href=""><span>自营</span> <span>大聚惠</span></a>
  272. </div>
  273. <div>
  274. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  275. </div>
  276. </li>
  277. <li>
  278. <a href=""
  279. ><img
  280. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  281. alt=""
  282. /></a>
  283. <div class="title">
  284. <a href=""
  285. >惠普
  286. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  287. >
  288. </div>
  289. <div>
  290. <a href=""><span>自营</span> <span>大聚惠</span></a>
  291. </div>
  292. <div>
  293. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  294. </div>
  295. </li>
  296. <li>
  297. <a href=""
  298. ><img
  299. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  300. alt=""
  301. /></a>
  302. <div class="title">
  303. <a href=""
  304. >惠普
  305. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  306. >
  307. </div>
  308. <div>
  309. <a href=""><span>自营</span> <span>大聚惠</span></a>
  310. </div>
  311. <div>
  312. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  313. </div>
  314. </li>
  315. <li>
  316. <a href=""
  317. ><img
  318. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  319. alt=""
  320. /></a>
  321. <div class="title">
  322. <a href=""
  323. >惠普
  324. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  325. >
  326. </div>
  327. <div>
  328. <a href=""><span>自营</span> <span>大聚惠</span></a>
  329. </div>
  330. <div>
  331. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  332. </div>
  333. </li>
  334. <li>
  335. <a href=""
  336. ><img
  337. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  338. alt=""
  339. /></a>
  340. <div class="title">
  341. <a href=""
  342. >惠普
  343. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  344. >
  345. </div>
  346. <div>
  347. <a href=""><span>自营</span> <span>大聚惠</span></a>
  348. </div>
  349. <div>
  350. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  351. </div>
  352. </li>
  353. <li>
  354. <a href=""
  355. ><img
  356. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  357. alt=""
  358. /></a>
  359. <div class="title">
  360. <a href=""
  361. >惠普
  362. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  363. >
  364. </div>
  365. <div>
  366. <a href=""><span>自营</span> <span>大聚惠</span></a>
  367. </div>
  368. <div>
  369. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  370. </div>
  371. </li>
  372. </ul>
  373. <ul class="right">
  374. <li>
  375. <a href=""
  376. ><img
  377. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  378. alt=""
  379. /></a>
  380. <div class="title">
  381. <a href=""
  382. >惠普
  383. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  384. >
  385. </div>
  386. <div>
  387. <a href=""><span>自营</span> <span>大聚惠</span></a>
  388. </div>
  389. <div>
  390. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  391. </div>
  392. </li>
  393. <li>
  394. <a href=""
  395. ><img
  396. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  397. alt=""
  398. /></a>
  399. <div class="title">
  400. <a href=""
  401. >惠普
  402. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  403. >
  404. </div>
  405. <div>
  406. <a href=""><span>自营</span> <span>大聚惠</span></a>
  407. </div>
  408. <div>
  409. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  410. </div>
  411. </li>
  412. <li>
  413. <a href=""
  414. ><img
  415. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  416. alt=""
  417. /></a>
  418. <div class="title">
  419. <a href=""
  420. >惠普
  421. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  422. >
  423. </div>
  424. <div>
  425. <a href=""><span>自营</span> <span>大聚惠</span></a>
  426. </div>
  427. <div>
  428. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  429. </div>
  430. </li>
  431. <li>
  432. <a href=""
  433. ><img
  434. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  435. alt=""
  436. /></a>
  437. <div class="title">
  438. <a href=""
  439. >惠普
  440. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  441. >
  442. </div>
  443. <div>
  444. <a href=""><span>自营</span> <span>大聚惠</span></a>
  445. </div>
  446. <div>
  447. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  448. </div>
  449. </li>
  450. <li>
  451. <a href=""
  452. ><img
  453. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  454. alt=""
  455. /></a>
  456. <div class="title">
  457. <a href=""
  458. >惠普
  459. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  460. >
  461. </div>
  462. <div>
  463. <a href=""><span>自营</span> <span>大聚惠</span></a>
  464. </div>
  465. <div>
  466. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  467. </div>
  468. </li>
  469. <li>
  470. <a href=""
  471. ><img
  472. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  473. alt=""
  474. /></a>
  475. <div class="title">
  476. <a href=""
  477. >惠普
  478. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  479. >
  480. </div>
  481. <div>
  482. <a href=""><span>自营</span> <span>大聚惠</span></a>
  483. </div>
  484. <div>
  485. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  486. </div>
  487. </li>
  488. <li>
  489. <a href=""
  490. ><img
  491. src="https://imgservice.suning.cn/uimg1/b2c/image/BlhhuzYeJOHROX6N4vFGwA.png?format=_is_300w_300h_4e.webp"
  492. alt=""
  493. /></a>
  494. <div class="title">
  495. <a href=""
  496. >惠普
  497. (HP)光影精灵7【16-e0112AX】高配置锐龙R5独显吃鸡电竞游戏笔记本便携学生设</a
  498. >
  499. </div>
  500. <div>
  501. <a href=""><span>自营</span> <span>大聚惠</span></a>
  502. </div>
  503. <div>
  504. <a href=""><span>¥5999</span> <span>200+评价</span></a>
  505. </div>
  506. </li>
  507. </ul>
  508. </div>
  509. </main>
  510. <!-- 页尾 -->
  511. <footer>
  512. <a href="">
  513. <img
  514. src="https://image1.suning.cn/uimg/cms/img/157543975265772267.png?from=mobile"
  515. alt=""
  516. />
  517. <span>猜你喜欢</span>
  518. </a>
  519. <a href="">
  520. <span class="iconfont icon-fangdajing"></span>
  521. <span>分类</span>
  522. </a>
  523. <a href="">
  524. <span class="iconfont icon-paihangbang"></span>
  525. <span> 排行榜</span>
  526. </a>
  527. <a href="">
  528. <span class="iconfont icon-gouwuche"></span>
  529. <span>购物车</span>
  530. </a>
  531. <a href="">
  532. <span class="iconfont icon-jurassic_user"></span>
  533. <span>我的易购</span>
  534. </a>
  535. </footer>
  536. </body>
  537. </html>
  538. /* CSS代码 */
  539. @import "reset.css";
  540. @import url(../font/iconfont.css);
  541. @import url(../font/font/iconfont.css);
  542. body header {
  543. position: relative;
  544. }
  545. body header .nav {
  546. width: 100%;
  547. margin: auto;
  548. padding: 2px 5px;
  549. position: absolute;
  550. top: 0;
  551. left: 0;
  552. }
  553. body header .nav .nav-wrapper {
  554. display: grid;
  555. grid-template-columns: 40px 1fr 40px;
  556. grid-template-rows: 40px;
  557. place-items: center;
  558. place-content: center;
  559. }
  560. body header .nav .nav-wrapper div {
  561. display: flex;
  562. flex-direction: column;
  563. align-items: center;
  564. }
  565. body header .nav .nav-wrapper div span {
  566. color: white;
  567. }
  568. body header .nav .nav-wrapper div span:last-of-type {
  569. font-size: 0.1rem;
  570. }
  571. body header .background-top img {
  572. height: 0.9rem;
  573. width: 100%;
  574. }
  575. body header .nav img {
  576. width: 1.5rem;
  577. }
  578. body header .nav .search {
  579. display: block;
  580. width: 100%;
  581. height: 0.3rem;
  582. background-color: white;
  583. margin: 10 auto;
  584. border-radius: 25px;
  585. line-height: 0.3rem;
  586. padding: 0 10px;
  587. }
  588. body footer {
  589. height: 0.5rem;
  590. display: grid;
  591. grid-template-columns: repeat(5, 1fr);
  592. background-color: #fff;
  593. place-items: center;
  594. position: fixed;
  595. left: 0;
  596. right: 0;
  597. bottom: 0;
  598. border-top: 2px solid #eee;
  599. z-index: 4;
  600. }
  601. body footer a {
  602. display: flex;
  603. flex-direction: column;
  604. align-items: center;
  605. font-size: 0.12rem;
  606. }
  607. body fotter a span {
  608. color: #666;
  609. }
  610. body footer a:first-of-type img {
  611. width: 0.24rem;
  612. }
  613. body main {
  614. padding-bottom: 0.5rem;
  615. }
  616. body main .background-bottom > img {
  617. width: 100%;
  618. position: relative;
  619. top: -10px;
  620. }
  621. body main .background-bottom div {
  622. width: 3.51rem;
  623. margin: auto;
  624. position: relative;
  625. }
  626. body main .background-bottom div img {
  627. width: 100%;
  628. border-radius: 25px;
  629. position: absolute;
  630. top: -1.3rem;
  631. z-index: 3;
  632. }
  633. body main .nav {
  634. position: relative;
  635. top: 50px;
  636. padding: 0 5px;
  637. display: grid;
  638. grid-template-columns: repeat(5, 1fr);
  639. grid-auto-rows: 0.7rem;
  640. }
  641. body main .nav .item {
  642. display: flex;
  643. flex-direction: column;
  644. align-items: center;
  645. justify-content: center;
  646. }
  647. body main .nav .item a:first-of-type {
  648. width: 0.4rem;
  649. }
  650. body main .nav .item a:last-of-type {
  651. font-size: smaller;
  652. color: gray;
  653. }
  654. body main .nav div a img {
  655. width: 100%;
  656. }
  657. body main .hot {
  658. margin: auto;
  659. padding: 0 10px;
  660. padding-top: 80px;
  661. display: grid;
  662. grid-template-columns: repeat(2, 1fr);
  663. }
  664. body main .hot .item {
  665. background-color: white;
  666. padding: 0.05rem 0.05rem;
  667. }
  668. body main .hot .item h3 {
  669. font-size: smaller;
  670. }
  671. body main .hot .item p {
  672. font-size: 0.09rem;
  673. color: #999;
  674. }
  675. body main .hot .item a img {
  676. width: 50%;
  677. }
  678. body main > h3 {
  679. margin: 5px 15px;
  680. }
  681. body main .recommend {
  682. display: flex;
  683. justify-content: center;
  684. margin: auto;
  685. }
  686. body main .recommend > div {
  687. width: 1.1rem;
  688. height: 1.3rem;
  689. display: flex;
  690. flex-direction: column;
  691. align-items: center;
  692. border-radius: 10px;
  693. background-color: white;
  694. position: relative;
  695. margin: 0 0.05rem;
  696. }
  697. body main .recommend div img {
  698. width: 0.75rem;
  699. height: 0.75rem;
  700. }
  701. body main .recommend div > span {
  702. height: 0.17rem;
  703. font-size: 0.1rem;
  704. padding: 1px 3px;
  705. border: 1px solid #d9a87a;
  706. color: #d9a87a;
  707. background-color: white;
  708. border-radius: 25px;
  709. position: absolute;
  710. top: 0.73rem;
  711. z-index: 3;
  712. }
  713. body main .recommend div > div {
  714. background-color: #d9a87a;
  715. overflow: hidden;
  716. padding: 5px 10px;
  717. border-radius: 0 0 10px 10px;
  718. position: absolute;
  719. bottom: 0px;
  720. left: 0;
  721. right: 0;
  722. }
  723. body main .recommend div > div a p,
  724. body main .recommend div > div a span {
  725. color: white;
  726. font-size: 0.12rem;
  727. }
  728. body main .guesslike {
  729. margin: 5px auto;
  730. height: 0.3rem;
  731. }
  732. body main .guesslike a {
  733. padding: 15px 0;
  734. }
  735. body main .guesslike a img {
  736. width: 100%;
  737. }
  738. body main .list {
  739. width: 100%;
  740. /* margin: 0 auto; */
  741. display: flex;
  742. justify-content: space-evenly;
  743. }
  744. body main .list .left {
  745. display: flex;
  746. flex-direction: column;
  747. width: 1.7rem;
  748. }
  749. body main .list .left li {
  750. width: 1.7rem;
  751. height: 2.6rem;
  752. display: flex;
  753. flex-direction: column;
  754. background-color: white;
  755. border-radius: 5px;
  756. }
  757. body main .list .left li a:first-of-type img {
  758. width: 1.7rem;
  759. }
  760. body main .list .left li .title > a {
  761. font-size: 0.1rem;
  762. font-weight: 600;
  763. line-height: 0.3rem;
  764. text-overflow: ellipsis;
  765. }
  766. body main .list .left li .title {
  767. overflow: hidden;
  768. height: 0.3rem;
  769. }
  770. body main .list .left li div:nth-of-type(2) a span:first-of-type {
  771. font-size: 0.05rem;
  772. padding: 0 0.02rem;
  773. background-color: orange;
  774. border-radius: 5px;
  775. color: white;
  776. }
  777. body main .list .left li div:nth-of-type(2) a span:last-of-type {
  778. font-size: 0.05rem;
  779. padding: 0 0.02rem;
  780. border: 1px solid #ffbb00;
  781. border-radius: 5px;
  782. }
  783. body main .list .left li div:last-of-type span:first-of-type {
  784. color: coral;
  785. }
  786. body main .list .left li div:last-of-type span:last-of-type {
  787. color: #999999;
  788. font-size: smaller;
  789. }
  790. body main .list .left {
  791. display: flex;
  792. flex-direction: column;
  793. width: 1.7rem;
  794. }
  795. body main .list .left li {
  796. width: 1.7rem;
  797. height: 2.6rem;
  798. display: flex;
  799. flex-direction: column;
  800. background-color: white;
  801. border-radius: 5px;
  802. }
  803. body main .list .left li a:first-of-type img {
  804. width: 100%;
  805. }
  806. body main .list .left li .title > a {
  807. font-size: 0.1rem;
  808. font-weight: 600;
  809. line-height: 0.3rem;
  810. text-overflow: ellipsis;
  811. }
  812. body main .list .left li .title {
  813. overflow: hidden;
  814. height: 0.3rem;
  815. }
  816. body main .list .left li div:nth-of-type(2) a span:first-of-type {
  817. font-size: 0.05rem;
  818. padding: 0 0.02rem;
  819. background-color: orange;
  820. border-radius: 5px;
  821. color: white;
  822. }
  823. body main .list .left li div:nth-of-type(2) a span:last-of-type {
  824. font-size: 0.05rem;
  825. padding: 0 0.02rem;
  826. border: 1px solid #ffbb00;
  827. border-radius: 5px;
  828. }
  829. body main .list .left li div:last-of-type span:first-of-type {
  830. color: coral;
  831. }
  832. body main .list .left li div:last-of-type span:last-of-type {
  833. color: #999999;
  834. font-size: smaller;
  835. }
  836. body main .list .right {
  837. display: flex;
  838. flex-direction: column;
  839. width: 1.7rem;
  840. margin-top: 0.1rem;
  841. }
  842. body main .list .right li {
  843. width: 1.7rem;
  844. height: 2.6rem;
  845. display: flex;
  846. flex-direction: column;
  847. background-color: white;
  848. border-radius: 5px;
  849. }
  850. body main .list .right li a:first-of-type img {
  851. width: 100%;
  852. }
  853. body main .list .right li .title > a {
  854. font-size: 0.1rem;
  855. font-weight: 600;
  856. line-height: 0.3rem;
  857. text-overflow: ellipsis;
  858. }
  859. body main .list .right li .title {
  860. overflow: hidden;
  861. height: 0.3rem;
  862. }
  863. body main .list .right li div:nth-of-type(2) a span:first-of-type {
  864. font-size: 0.05rem;
  865. padding: 0 0.02rem;
  866. background-color: orange;
  867. border-radius: 5px;
  868. color: white;
  869. }
  870. body main .list .right li div:nth-of-type(2) a span:last-of-type {
  871. font-size: 0.05rem;
  872. padding: 0 0.02rem;
  873. border: 1px solid #ffbb00;
  874. border-radius: 5px;
  875. }
  876. body main .list .right li div:last-of-type span:first-of-type {
  877. color: coral;
  878. }
  879. body main .list .right li div:last-of-type span:last-of-type {
  880. color: #999999;
  881. font-size: smaller;
  882. }
  883. @media (min-width: 460px) {
  884. html {
  885. font-size: 125px;
  886. }
  887. }
  888. @media (max-width: 350px) {
  889. html {
  890. font-size: 87.5px;
  891. }
  892. }

预览

分割线————————————————

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议