瀏覽代碼

📦 按要求修改首页字

快乐的梦鱼 13 小時之前
父節點
當前提交
03b8270682
共有 2 個文件被更改,包括 6 次插入2 次删除
  1. 二進制
      src/assets/images/index-title.png
  2. 6 2
      src/pages/index.vue

二進制
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%;