博客列表 >淘宝首页丐版

淘宝首页丐版

皮皮志
皮皮志原创
2022年10月30日 15:01:13334浏览
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  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>淘宝网首页</title>
  8. <link rel="stylesheet" href="//at.alicdn.com/t/c/font_3736335_39c47psekpn.css">
  9. <style>
  10. @import url('reset.css');
  11. body{
  12. background-color: #FF93C4;
  13. }
  14. header{
  15. margin: 0 auto;
  16. width: 1200px;
  17. }
  18. header .up{
  19. display: grid;
  20. background-color: #FF77B7;
  21. border: 1px solid #ff77b7;
  22. grid-template-columns: 100px 200px 200px 200px 200px 200px ;
  23. place-content:space-between ;
  24. gap: 10px;
  25. place-items: center;
  26. }
  27. header .up img{
  28. width: 100%;
  29. }
  30. header .bottom{
  31. border: 1px solid white;
  32. display: grid;
  33. background-color: white;
  34. grid-template-columns:240px 720px 240px;
  35. grid-auto-rows: 100px;
  36. place-content: center;
  37. place-items: center;
  38. }
  39. header .bottom .pic img{
  40. width: 30%;
  41. place-self: center;
  42. margin-left: 120px;
  43. }
  44. header .bottom .search [type='text'] {
  45. width: 740px;
  46. height: 40px;
  47. border: 1px solid #FF5000;
  48. border-radius: 40px;
  49. margin-top: 32px;
  50. }
  51. header .bottom .search button{
  52. height: 34px;
  53. width: 72px;
  54. border: none;
  55. color: #fff;
  56. font-size: 18px;
  57. font-weight: 700;
  58. border-radius: 40px;
  59. background-color: #FF5000;
  60. position: relative;
  61. left: 663px;
  62. bottom: 37px;
  63. cursor: pointer;
  64. }
  65. header .bottom .search .bb{
  66. position: relative;
  67. left: 25px;
  68. top: 60px;
  69. }
  70. header .bottom .search .keyword{
  71. position: relative;
  72. left: 50px;
  73. bottom: 28px;
  74. }
  75. header .bottom .search .keyword a{
  76. text-decoration: none;
  77. margin-right: 8px;
  78. color: #666666;
  79. font-size: 12px;
  80. }
  81. header .bottom .search .keyword a:hover{
  82. color: red;
  83. }
  84. header .big{
  85. background-color: white;
  86. height: 400px;
  87. width: 1200px;
  88. display: grid;
  89. grid-template-columns: 265px 560px 260px;
  90. grid-template-rows: 40px 300px;
  91. place-content: space-between;
  92. padding: 35px 25px 0;
  93. }
  94. header .big .fl{
  95. grid-area: 1/1/3/2;
  96. background-color: #F7F9FA;
  97. }
  98. header .big .fl ul span{
  99. font-size: 18px;
  100. font-weight: 600;
  101. position: relative;
  102. top: 10px;
  103. left: 15px;
  104. }
  105. header .big .fl li{
  106. list-style: none;
  107. margin: 20px 40px;
  108. }
  109. header .fl li:hover{
  110. background-color: #ff5000;
  111. }
  112. header .big .fl li a{
  113. text-decoration: none;
  114. color: #666666;
  115. }
  116. header .big .tm{
  117. width: 850px;
  118. height: 40px;
  119. grid-area: 1/2/4/2;
  120. background-color: #F7F9FA;
  121. display: flex;
  122. place-items: center;
  123. }
  124. header .big .tm a{
  125. text-decoration: none;
  126. margin-left: 40px;
  127. }
  128. header .big .tm a:hover{
  129. color:#ff5000 ;
  130. }
  131. header .big .lb{
  132. width: 540px;
  133. height: 310px;
  134. grid-area:2/2/3/3;
  135. }
  136. header .big .lb img{
  137. width: 100%;
  138. }
  139. header .big .xx{
  140. grid-area: 2/3/2/4;
  141. height: 300px;
  142. width: 260px;
  143. background-color: #F7F9FA;
  144. }
  145. header .big .xx .tx{
  146. margin:0 auto;
  147. position: relative;
  148. top: 30px;
  149. left: 85px;
  150. }
  151. header .big .xx .tx img{
  152. border-radius: 40px;
  153. }
  154. header .big .xx .tx p{
  155. font: size 16px ;
  156. margin-top: 22px;
  157. color: #3C3C3C;
  158. font-weight: 400;
  159. }
  160. header .big .xx .btn{
  161. margin-top: 40px;
  162. height: 40px;
  163. }
  164. header .big .xx .btn button{
  165. line-height: 40px;
  166. width: 70px;
  167. border-radius: 40px;
  168. cursor: pointer;
  169. font-size: 16px;
  170. margin-left: 10px;
  171. }
  172. header .big .xx .btn button:first-of-type{
  173. background-color: #FF5900;
  174. color: white;
  175. }
  176. header .big .xx .btn button:nth-of-type(2){
  177. background-color: #FF8200;
  178. color: white;
  179. }
  180. header .big .xx .btn button:last-of-type{
  181. background-color: FFFFFF;
  182. color: #FF5000;
  183. }
  184. header .big .xx .xtb a{
  185. text-decoration: none;
  186. color: #3C3C75;
  187. text-align: center;
  188. margin: 15px 10px;
  189. font-weight: 500;
  190. }
  191. header .big .xx .xtb p{
  192. font-size: 10px;
  193. margin: 15px 1px;
  194. }
  195. header .big .xx .xtb{
  196. display: flex;
  197. margin-left:10px;
  198. }
  199. header .big .xx .rd a{
  200. text-decoration: none;
  201. font-size: 12px;
  202. }
  203. header .big .xx .rd a:first-of-type{
  204. border: 1px solid red;
  205. background-color: #FFEFEF;
  206. color: #FF5000;
  207. }
  208. header .big .xx .rd a:last-of-type{
  209. color: #666666;
  210. }
  211. main{
  212. width: 1200px;
  213. margin: 0 auto;
  214. background-color: white;
  215. }
  216. main .head-title{
  217. padding-top: 50px;
  218. margin-left: 25px;
  219. }
  220. main .head-title span {
  221. color: #111;
  222. font-weight: bold;
  223. font-size: 24px;
  224. line-height: 24px
  225. }
  226. main .head-title img{
  227. height: 20px;
  228. margin: 4px 0 0 6px;
  229. }
  230. main .list{
  231. display: grid;
  232. grid-template-rows: repeat(3,1fr);
  233. grid-template-columns: repeat(3,1fr);
  234. height: 600px;
  235. width: 1200px;
  236. gap: 10px;
  237. }
  238. main .list .item-link{
  239. display: inline-block;
  240. width: 100%;
  241. height: 100%;
  242. padding: 11px;
  243. }
  244. main .img-wrapper img{
  245. width: 100%;
  246. }
  247. main .list .img-wrapper{
  248. position: absolute;
  249. width: 150px;
  250. height: 150px;
  251. overflow: hidden;
  252. background-color: rgba(27, 23, 67, 0.03);
  253. border-radius: 10px;
  254. }
  255. main .list .info-wrapper{
  256. height: 116px;
  257. margin-left: 162px;
  258. overflow: hidden;
  259. }
  260. main .list .info-wrapper .title{
  261. display: inline-block;
  262. max-height: 46px;
  263. margin: 6px 0 2px 0;
  264. overflow: hidden;
  265. color: #333;
  266. font-size: 16px;
  267. line-height: 23px
  268. }
  269. main .list .info-wrapper .tag-list{
  270. height: 20px;
  271. overflow: hidden;
  272. }
  273. main .item-link .price-value{
  274. margin-left: 162px;
  275. color: #ff5000;
  276. font-size: 18px;
  277. }
  278. main .item-link .info-wrapper .tag-list .tag-item{
  279. display: inline-block;
  280. height: 20px;
  281. margin-right: 6px;
  282. padding: 0 4px;
  283. color: #ff5000;
  284. font-size: 12px;
  285. line-height: 18px;
  286. vertical-align: top;
  287. border: 1px solid #ff5000;
  288. border-radius: 3px;
  289. }
  290. </style>
  291. </head>
  292. <body>
  293. <header>
  294. <div class="up">
  295. <a href=""><img src="/images/tm.png" alt=""></a>
  296. <a href=""><img src="/images/1.png" alt=""></a>
  297. <a href=""><img src="/images/2.png" alt=""></a>
  298. <a href=""><img src="/images/3.png" alt=""></a>
  299. <a href=""><img src="/images/4.png" alt=""></a>
  300. <a href=""><img src="/images/5.png" alt=""></a>
  301. </div>
  302. <div class="bottom">
  303. <a class="logo" href=""><img src="images/tb.png" alt=""></a>
  304. <div class="search">
  305. <span class="bb">宝贝&nbsp&nbsp</span>
  306. <input type="text" placeholder="">
  307. <button>搜索</button>
  308. <div class="keyword">
  309. <a href="">新款连衣裙</a>
  310. <a href="">四件套</a>
  311. <a href="">潮流T恤</a>
  312. <a href="">时尚女鞋</a>
  313. <a href="">短裤</a>
  314. <a href="">半身裙</a>
  315. <a href="">男士外套</a>
  316. <a href="">墙纸</a>
  317. <a href="">行车记录仪</a>
  318. <a href="">新款男鞋</a>
  319. </div>
  320. </div>
  321. <a class="pic" href=""><img src="images/index.png" alt=""></a>
  322. </div>
  323. <div class="big">
  324. <div class="fl">
  325. <ul>
  326. <span>分类</span>
  327. <li>
  328. <td><a href="">女装 /</a></td>
  329. <td><a href="">内衣 /</a></td>
  330. <td><a href="">奢侈品</a></td>
  331. </li>
  332. <li>
  333. <td><a href="">女鞋 /</a></td>
  334. <td><a href="">男鞋 /</a></td>
  335. <td><a href="">箱包</a></td>
  336. </li>
  337. <li>
  338. <td><a href="">美妆 /</a></td>
  339. <td><a href="">饰品 /</a></td>
  340. <td><a href="">洗护</a></td>
  341. </li>
  342. <li>
  343. <td><a href="">男装 /</a></td>
  344. <td><a href="">运动 /</a></td>
  345. <td><a href="">百货</a></td>
  346. </li>
  347. <li>
  348. <td><a href="">手机 /</a></td>
  349. <td><a href="">数码 /</a></td>
  350. <td><a href="">企业礼品</a></td>
  351. </li>
  352. <li>
  353. <td><a href="">家装 /</a></td>
  354. <td><a href="">电器 /</a></td>
  355. <td><a href="">车品</a></td>
  356. </li>
  357. <li>
  358. <td><a href="">食品 /</a></td>
  359. <td><a href="">生鲜 /</a></td>
  360. <td><a href="">母婴</a></td>
  361. </li>
  362. <li>
  363. <td><a href="">医药 /</a></td>
  364. <td><a href="">保健 /</a></td>
  365. <td><a href="">出口</a></td>
  366. </li>
  367. </ul>
  368. </div>
  369. <div class="tm">
  370. <a href="" style="color: #FF0036;">天猫</a>
  371. <a href="" style="color: #FF0036;">聚划算</a>
  372. <a href="" style="color: #33C900;">天猫超市</a>
  373. <a href="" style="color: #333333;">司法拍卖</a>
  374. <a href="" style="color: #333333;">飞猪旅行</a>
  375. <a href="" style="color: #333333;">天天特卖</a>
  376. <a href="" style="color: #333333;">极有家</a>
  377. <a href="" style="color: #333333;">淘宝直播</a>
  378. </div>
  379. <div class="lb">
  380. <a href=""><img src="/images/lb.png" alt=""></a>
  381. </div>
  382. <div class="xx">
  383. <div class="tx">
  384. <a href=""><img src="/images/tx.jpg" alt=""></a>
  385. <p>HI!你好</p>
  386. </div>
  387. <div class="btn">
  388. <button>登录</button>
  389. <button>注册</button>
  390. <button>开店</button>
  391. </div>
  392. <div class="iconfont">
  393. <div class="xtb">
  394. <a class="icon-shoucang" href="">
  395. <p> 宝贝收藏</p>
  396. </a>
  397. <a class="icon-goumai" href="">
  398. <p> 买过的店</p>
  399. </a>
  400. <a class="icon-dianpu" href="">
  401. <p> 收藏的店</p>
  402. </a>
  403. <a class="icon-wodezuji" href="">
  404. <p> 我的足迹</p>
  405. </a>
  406. </div>
  407. </div>
  408. <div class="rd">
  409. <a href="">热点</a>
  410. <a href="">淘宝网疫情场景给卖家的指导手册</a>
  411. </div>
  412. </div>
  413. </div>
  414. </header>
  415. <main>
  416. <h3 class="head-title">
  417. <span>猜你喜欢</span>
  418. <img src="/images/gxtj.png" alt="">
  419. </h3>
  420. <div class="list">
  421. <a href="" class="item-link">
  422. <div class="img-wrapper">
  423. <img src="//gw.alicdn.com/bao/uploaded/i4/128981385/O1CN01LjlDFT1M6NL8bQeOw_!!2-saturn_solar.png_300x300q90.jpg_.webp" >
  424. </div>
  425. <div class="info-wrapper" >
  426. <div class="title"><img src="//img.alicdn.com/imgextra/i1/O1CN01rHZjwm1kc1MDCvBIO_!!6000000004703-2-tps-38-20.png">意式岩板梳妆台简约现代小户型化妆桌北欧卧室轻奢收纳化妆台</div>
  427. <div class="tag-list">
  428. <div class="tag-item" style="color: #FF5000; border-color: #FAB596; background: #FFFFFF">送运费险</div>
  429. </div>
  430. </div>
  431. <div class="price-wrapper">
  432. <span class="price-value"><em>¥</em>5500</span>
  433. </div>
  434. </a>
  435. <a href="" class="item-link">
  436. <div class="img-wrapper">
  437. <img src="//gw.alicdn.com/bao/uploaded/i4/128981385/O1CN01LjlDFT1M6NL8bQeOw_!!2-saturn_solar.png_300x300q90.jpg_.webp" >
  438. </div>
  439. <div class="info-wrapper" >
  440. <div class="title"><img src="//img.alicdn.com/imgextra/i1/O1CN01rHZjwm1kc1MDCvBIO_!!6000000004703-2-tps-38-20.png">意式岩板梳妆台简约现代小户型化妆桌北欧卧室轻奢收纳化妆台</div>
  441. <div class="tag-list">
  442. <div class="tag-item" style="color: #FF5000; border-color: #FAB596; background: #FFFFFF">送运费险</div>
  443. </div>
  444. </div>
  445. <div class="price-wrapper">
  446. <span class="price-value"><em>¥</em>5500</span>
  447. </div>
  448. </a>
  449. <a href="" class="item-link">
  450. <div class="img-wrapper">
  451. <img src="//gw.alicdn.com/bao/uploaded/i4/128981385/O1CN01LjlDFT1M6NL8bQeOw_!!2-saturn_solar.png_300x300q90.jpg_.webp" >
  452. </div>
  453. <div class="info-wrapper" >
  454. <div class="title"><img src="//img.alicdn.com/imgextra/i1/O1CN01rHZjwm1kc1MDCvBIO_!!6000000004703-2-tps-38-20.png">意式岩板梳妆台简约现代小户型化妆桌北欧卧室轻奢收纳化妆台</div>
  455. <div class="tag-list">
  456. <div class="tag-item" style="color: #FF5000; border-color: #FAB596; background: #FFFFFF">送运费险</div>
  457. </div>
  458. </div>
  459. <div class="price-wrapper">
  460. <span class="price-value"><em>¥</em>5500</span>
  461. </div>
  462. </a>
  463. </div>
  464. </main>
  465. </body>
  466. </html>

代码展示

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