mistpe commited on
Commit
ca35693
·
verified ·
1 Parent(s): a208a97

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +40 -8
index.html CHANGED
@@ -481,6 +481,7 @@
481
  </div>
482
  </section>
483
 
 
484
  <!-- 产品展示区 -->
485
  <section class="products">
486
  <div class="section-header">
@@ -498,7 +499,7 @@
498
  stroke-width="1" stroke-dasharray="8 4"/>
499
  </svg>
500
  </div>
501
- <div class="image-placeholder"></div>
502
  </div>
503
  <div class="product-info">
504
  <span class="product-category">传统系列</span>
@@ -537,7 +538,7 @@
537
  stroke-width="1" stroke-dasharray="8 4"/>
538
  </svg>
539
  </div>
540
- <div class="image-placeholder youth-series"></div>
541
  </div>
542
  <div class="product-info">
543
  <span class="product-category">青春系列</span>
@@ -576,7 +577,7 @@
576
  stroke-width="1" stroke-dasharray="8 4"/>
577
  </svg>
578
  </div>
579
- <div class="image-placeholder cocktail-series"></div>
580
  </div>
581
  <div class="product-info">
582
  <span class="product-category">调制系列</span>
@@ -615,7 +616,7 @@
615
  stroke-width="1" stroke-dasharray="8 4"/>
616
  </svg>
617
  </div>
618
- <div class="image-placeholder season-series"></div>
619
  </div>
620
  <div class="product-info">
621
  <span class="product-category">季节限定</span>
@@ -654,7 +655,7 @@
654
  stroke-width="1" stroke-dasharray="8 4"/>
655
  </svg>
656
  </div>
657
- <div class="image-placeholder fusion-series"></div>
658
  </div>
659
  <div class="product-info">
660
  <span class="product-category">融合系列</span>
@@ -693,7 +694,7 @@
693
  stroke-width="1" stroke-dasharray="8 4"/>
694
  </svg>
695
  </div>
696
- <div class="image-placeholder premium-series"></div>
697
  </div>
698
  <div class="product-info">
699
  <span class="product-category">轻奢系列</span>
@@ -743,7 +744,6 @@
743
  </button>
744
  </div>
745
  </section>
746
-
747
  <style>
748
  /* 产品展示区新增样式 */
749
  .product-card {
@@ -918,7 +918,39 @@
918
  .image-placeholder {
919
  position: absolute;
920
  inset: 0;
921
- background: rgba(255, 255, 255, 0.1);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
922
  }
923
 
924
  .product-decoration {
 
481
  </div>
482
  </section>
483
 
484
+ <!-- 产品展示区 -->
485
  <!-- 产品展示区 -->
486
  <section class="products">
487
  <div class="section-header">
 
499
  stroke-width="1" stroke-dasharray="8 4"/>
500
  </svg>
501
  </div>
502
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
503
  </div>
504
  <div class="product-info">
505
  <span class="product-category">传统系列</span>
 
538
  stroke-width="1" stroke-dasharray="8 4"/>
539
  </svg>
540
  </div>
541
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
542
  </div>
543
  <div class="product-info">
544
  <span class="product-category">青春系列</span>
 
577
  stroke-width="1" stroke-dasharray="8 4"/>
578
  </svg>
579
  </div>
580
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
581
  </div>
582
  <div class="product-info">
583
  <span class="product-category">调制系列</span>
 
616
  stroke-width="1" stroke-dasharray="8 4"/>
617
  </svg>
618
  </div>
619
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
620
  </div>
621
  <div class="product-info">
622
  <span class="product-category">季节限定</span>
 
655
  stroke-width="1" stroke-dasharray="8 4"/>
656
  </svg>
657
  </div>
658
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
659
  </div>
660
  <div class="product-info">
661
  <span class="product-category">融合系列</span>
 
694
  stroke-width="1" stroke-dasharray="8 4"/>
695
  </svg>
696
  </div>
697
+ <div class="image-placeholder" role="img" aria-label="产品图片"></div>
698
  </div>
699
  <div class="product-info">
700
  <span class="product-category">轻奢系列</span>
 
744
  </button>
745
  </div>
746
  </section>
 
747
  <style>
748
  /* 产品展示区新增样式 */
749
  .product-card {
 
918
  .image-placeholder {
919
  position: absolute;
920
  inset: 0;
921
+ background-size: contain;
922
+ background-position: center;
923
+ background-repeat: no-repeat;
924
+ transition: transform 0.3s ease;
925
+ }
926
+
927
+ .image-placeholder:hover {
928
+ transform: scale(1.05);
929
+ }
930
+
931
+ /* 产品图片样式 */
932
+ .product-card:nth-child(1) .image-placeholder {
933
+ background-image: url('./img/传统系列.png');
934
+ }
935
+
936
+ .product-card:nth-child(2) .image-placeholder {
937
+ background-image: url('./img/青春系列.png');
938
+ }
939
+
940
+ .product-card:nth-child(3) .image-placeholder {
941
+ background-image: url('./img/东方气泡.png');
942
+ }
943
+
944
+ .product-card:nth-child(4) .image-placeholder {
945
+ background-image: url('./img/季节限定.png');
946
+ }
947
+
948
+ .product-card:nth-child(5) .image-placeholder {
949
+ background-image: url('./img/融合系列.png');
950
+ }
951
+
952
+ .product-card:nth-child(6) .image-placeholder {
953
+ background-image: url('./img/轻奢系列.png');
954
  }
955
 
956
  .product-decoration {