mistpe commited on
Commit
969e7f9
·
verified ·
1 Parent(s): 0fea946

Update index4.html

Browse files
Files changed (1) hide show
  1. index4.html +40 -8
index4.html CHANGED
@@ -461,6 +461,7 @@
461
  </div>
462
  </section>
463
 
 
464
  <!-- 产品展示区 -->
465
  <section class="products">
466
  <div class="section-header">
@@ -478,7 +479,7 @@
478
  stroke-width="1" stroke-dasharray="8 4"/>
479
  </svg>
480
  </div>
481
- <div class="image-placeholder"></div>
482
  </div>
483
  <div class="product-info">
484
  <span class="product-category">传统系列</span>
@@ -517,7 +518,7 @@
517
  stroke-width="1" stroke-dasharray="8 4"/>
518
  </svg>
519
  </div>
520
- <div class="image-placeholder youth-series"></div>
521
  </div>
522
  <div class="product-info">
523
  <span class="product-category">青春系列</span>
@@ -556,7 +557,7 @@
556
  stroke-width="1" stroke-dasharray="8 4"/>
557
  </svg>
558
  </div>
559
- <div class="image-placeholder cocktail-series"></div>
560
  </div>
561
  <div class="product-info">
562
  <span class="product-category">调制系列</span>
@@ -595,7 +596,7 @@
595
  stroke-width="1" stroke-dasharray="8 4"/>
596
  </svg>
597
  </div>
598
- <div class="image-placeholder season-series"></div>
599
  </div>
600
  <div class="product-info">
601
  <span class="product-category">季节限定</span>
@@ -634,7 +635,7 @@
634
  stroke-width="1" stroke-dasharray="8 4"/>
635
  </svg>
636
  </div>
637
- <div class="image-placeholder fusion-series"></div>
638
  </div>
639
  <div class="product-info">
640
  <span class="product-category">融合系列</span>
@@ -673,7 +674,7 @@
673
  stroke-width="1" stroke-dasharray="8 4"/>
674
  </svg>
675
  </div>
676
- <div class="image-placeholder premium-series"></div>
677
  </div>
678
  <div class="product-info">
679
  <span class="product-category">轻奢系列</span>
@@ -723,7 +724,6 @@
723
  </button>
724
  </div>
725
  </section>
726
-
727
  <style>
728
  /* 产品展示区新增样式 */
729
  .product-card {
@@ -898,7 +898,39 @@
898
  .image-placeholder {
899
  position: absolute;
900
  inset: 0;
901
- background: rgba(255, 255, 255, 0.1);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
902
  }
903
 
904
  .product-decoration {
 
461
  </div>
462
  </section>
463
 
464
+ <!-- 产品展示区 -->
465
  <!-- 产品展示区 -->
466
  <section class="products">
467
  <div class="section-header">
 
479
  stroke-width="1" stroke-dasharray="8 4"/>
480
  </svg>
481
  </div>
482
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
483
  </div>
484
  <div class="product-info">
485
  <span class="product-category">传统系列</span>
 
518
  stroke-width="1" stroke-dasharray="8 4"/>
519
  </svg>
520
  </div>
521
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
522
  </div>
523
  <div class="product-info">
524
  <span class="product-category">青春系列</span>
 
557
  stroke-width="1" stroke-dasharray="8 4"/>
558
  </svg>
559
  </div>
560
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
561
  </div>
562
  <div class="product-info">
563
  <span class="product-category">调制系列</span>
 
596
  stroke-width="1" stroke-dasharray="8 4"/>
597
  </svg>
598
  </div>
599
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
600
  </div>
601
  <div class="product-info">
602
  <span class="product-category">季节限定</span>
 
635
  stroke-width="1" stroke-dasharray="8 4"/>
636
  </svg>
637
  </div>
638
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
639
  </div>
640
  <div class="product-info">
641
  <span class="product-category">融合系列</span>
 
674
  stroke-width="1" stroke-dasharray="8 4"/>
675
  </svg>
676
  </div>
677
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
678
  </div>
679
  <div class="product-info">
680
  <span class="product-category">轻奢系列</span>
 
724
  </button>
725
  </div>
726
  </section>
 
727
  <style>
728
  /* 产品展示区新增样式 */
729
  .product-card {
 
898
  .image-placeholder {
899
  position: absolute;
900
  inset: 0;
901
+ background-size: contain;
902
+ background-position: center;
903
+ background-repeat: no-repeat;
904
+ transition: transform 0.3s ease;
905
+ }
906
+
907
+ .image-placeholder:hover {
908
+ transform: scale(1.05);
909
+ }
910
+
911
+ /* 产品图片样式 */
912
+ .product-card:nth-child(1) .image-placeholder {
913
+ background-image: url('./img/传统系列.png');
914
+ }
915
+
916
+ .product-card:nth-child(2) .image-placeholder {
917
+ background-image: url('./img/青春系列.png');
918
+ }
919
+
920
+ .product-card:nth-child(3) .image-placeholder {
921
+ background-image: url('./img/东方气泡.png');
922
+ }
923
+
924
+ .product-card:nth-child(4) .image-placeholder {
925
+ background-image: url('./img/季节限定.png');
926
+ }
927
+
928
+ .product-card:nth-child(5) .image-placeholder {
929
+ background-image: url('./img/融合系列.png');
930
+ }
931
+
932
+ .product-card:nth-child(6) .image-placeholder {
933
+ background-image: url('./img/轻奢系列.png');
934
  }
935
 
936
  .product-decoration {