Explorar o código

📦 按要求修改首页字

快乐的梦鱼 hai 12 horas
pai
achega
03b8270682
Modificáronse 2 ficheiros con 6 adicións e 2 borrados
  1. BIN=BIN
      src/assets/images/index-title.png
  2. 6 2
      src/pages/index.vue

BIN=BIN
src/assets/images/index-title.png


+ 6 - 2
src/pages/index.vue

@@ -30,7 +30,6 @@
     </Carousel>
 
     <h2 class="text-center banner-title">
-      保护利用,传承发展
     </h2>
 
     <!-- 主要内容 -->
@@ -455,12 +454,17 @@ onMounted(() => {
   margin-top: 35px;
   margin-bottom: 20px;
   position: absolute;
-  top: 100px;
+  top: 80px;
   left: 0;
   right: 0;
   width: 100%;
   text-align: center;
   z-index: 10;
+  min-height: 36px;
+  background-image: url('@/assets/images/index-title.png');
+  background-size: auto 36px;
+  background-repeat: no-repeat;
+  background-position: center center;
 }
 .bars-image {
   width: 100%;