当前位置:   article > 正文

仿淘宝页面_html仿淘宝

html仿淘宝
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title></title>
  6. <style>
  7. * {
  8. margin: 0;
  9. padding: 0;
  10. }
  11. .goods {
  12. width: 250px;
  13. height: 390px;
  14. border: 1px solid red;
  15. }
  16. .yu>img {
  17. display: block;
  18. width: 250px;
  19. height: 250px;
  20. }
  21. .text>div {
  22. margin: 5px;
  23. }
  24. .price>span {
  25. vertical-align: middle;
  26. }
  27. .price>span:first-child {
  28. color: #eb5628;
  29. font-weight: bold;
  30. font-size: 20px;
  31. line-height: 20px;
  32. }
  33. .price>span:nth-child(2) {
  34. background-color: #eb5628;
  35. color: white;
  36. font-size: 13px;
  37. line-height: 20px;
  38. }
  39. .price>span:last-child {
  40. float: right;
  41. font-size: 13px;
  42. color: #777;
  43. }
  44. .des>a>label {
  45. font-size: 13px;
  46. }
  47. .des>a>label:first-child {
  48. color: #eb5628;
  49. }
  50. .des>a:link {
  51. text-decoration: none;
  52. color: black;
  53. }
  54. .des>a:visited {
  55. color: black;
  56. }
  57. .des>a:hover {
  58. color: #eb5628;
  59. text-decoration: underline;
  60. }
  61. .shop_info>a:visited {
  62. color: #777;
  63. }
  64. .shop_info>a {
  65. font-size: 13px;
  66. }
  67. .shop_info>label {
  68. float: right;
  69. font-size: 13px;
  70. color: #777;
  71. }
  72. .icon_info>span:first-child {
  73. background: url('img/sprite.png');
  74. background-size: 610px 600px;
  75. display: inline-block;
  76. background-position: -375px -400px;
  77. width: 32px;
  78. height: 32px;
  79. }
  80. .icon_info>span:last-child {
  81. background: url('img/2222.png');
  82. background-size: 860px 852px;
  83. display: inline-block;
  84. background-position: -344px -646px;
  85. width: 32px;
  86. height: 32px;
  87. float: right;
  88. }
  89. .yu {
  90. width: 250px;
  91. position: relative;
  92. }
  93. .yu>div {
  94. position: absolute;
  95. bottom: 0;
  96. display: none;
  97. }
  98. .yu>div>div {
  99. background-color: #eb5628;
  100. font-size: 25px;
  101. color: white;
  102. width: 124px;
  103. float: left;
  104. text-align: center;
  105. }
  106. .yu>div>div:last-child {
  107. border: 1px solid white;
  108. border-top: none;
  109. border-right: none;
  110. }
  111. .yu:hover>div {
  112. display: block;
  113. }
  114. </style>
  115. </head>
  116. <body>
  117. <div class="goods">
  118. <div class="yu">
  119. <img src="111.webp" alt="">
  120. <div>
  121. <div>
  122. 找相似
  123. </div>
  124. <div>
  125. 找相同
  126. </div>
  127. </div>
  128. </div>
  129. <div class="text">
  130. <div class="price">
  131. <span>12.80</span>
  132. <span>包邮</span>
  133. <span>1+人付款</span>
  134. </div>
  135. <div class="des">
  136. <a href="#">
  137. <label for="des">鸡你太美</label>
  138. <label for="">手办摆件恶搞ikun小黑子蔡徐坤公仔小玩偶车摆件小玩具</label>
  139. </a>
  140. </div>
  141. <div class="shop_info">
  142. <a href="">信誉玩具专营店</a>
  143. <label>浙江 金华</label>
  144. </div>
  145. <div class="icon_info">
  146. <span></span>
  147. <span></span>
  148. </div>
  149. </div>
  150. </div>
  151. </body>
  152. </html>

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/996664
推荐阅读
相关标签
  

闽ICP备14008679号