Selaa lähdekoodia

fix:bug修复

zhubo 3 vuotta sitten
vanhempi
commit
011a1732c0
1 muutettua tiedostoa jossa 5 lisäystä ja 5 poistoa
  1. 5 5
      components/home/header.vue

+ 5 - 5
components/home/header.vue

@@ -4,7 +4,7 @@
     <div
       id="index-header"
       :class="[
-        headFixed == true ? 'fixedTop' : '',
+        headFixed ? 'fixedTop' : '',
         headWhite ? 'head-white' : '',
       ]"
     >
@@ -19,9 +19,7 @@
               <nuxt-link to="/" class="home">首页</nuxt-link>
             </li>
             <li :class="{ 'h-nav-li-more': productActive }">
-              <a class="h-nav-list-parent" href="javascript:void(0)"
-                >产品与服务</a
-              >
+              <a class="h-nav-list-parent" href="javascript:void(0)">产品与服务</a>
               <!-- <nuxt-link to="">产品与服务</nuxt-link> -->
               <ul class="h-nav-list-child">
                 <li>
@@ -388,9 +386,11 @@ export default {
       }
     }
     .h-nav-list-child {
+      display: flex;
+      flex-direction: column;
       position: absolute;
       width: 100px;
-      border-radius: 0px 0px 4px 4px;
+      border-radius: 0 0 4px 4px;
       overflow: hidden;
       max-height: 0;
       background: #ffffff;