Browse Source

标题用文字

gcz 2 years ago
parent
commit
29b485cd60
3 changed files with 16 additions and 3 deletions
  1. BIN
      src/assets/img/index-top.bak.png
  2. BIN
      src/assets/img/index-top.png
  3. 16 3
      src/components/header.vue

BIN
src/assets/img/index-top.bak.png


BIN
src/assets/img/index-top.png


+ 16 - 3
src/components/header.vue

@@ -3,7 +3,7 @@
  * @Author: wangcc
  * @Date: 2022-06-14 18:11:54
  * @LastEditors: gcz
- * @LastEditTime: 2022-06-28 16:50:32
+ * @LastEditTime: 2022-06-28 18:02:57
  * @FilePath: \castgroup_bigscreen\src\components\header.vue
  * @Copyright: Copyright (c) 2016~2022 by wangcc, All Rights Reserved. 
 -->
@@ -113,11 +113,15 @@ import timeFormat from '@/utils/timeFormat'
   h2 {
     margin: 0;
     line-height: 48px;
-    color: transparent;
+    color: #05d6e5;
     position: absolute;
     width: 100%;
-    top: 0;
+    top: 20px;
     text-align: center;
+    letter-spacing: 1px;
+    font-size: 40px;
+    text-indent: -0.8em;
+    text-shadow: 0 2px #04213b;
   }
   span {
     color: #0c6e7a;
@@ -149,4 +153,13 @@ import timeFormat from '@/utils/timeFormat'
     top: 40px;
   }
 }
+@media only screen and (max-width : 1200px) {
+    .top-box{
+        h2{
+           letter-spacing: 1px;
+            font-size: 28px;
+            text-indent: -0.8em; 
+        }
+    }
+}
 </style>