tanxue 3 vuotta sitten
vanhempi
commit
bf37ccd707
2 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 2 2
      layouts/templateA.vue
  2. 2 2
      layouts/templateB.vue

+ 2 - 2
layouts/templateA.vue

@@ -31,9 +31,9 @@
 </script>
 <style lang="scss">
   .nuxt-box:not(.client-index-page){
-    width: 100%;margin-top: 80px;
+    width: 100%;padding-top: 80px;
     // 移动端手机尺寸(0-768)
-    @media (max-width: 768px){margin-top: 61px;}
+    @media (max-width: 768px){padding-top: 61px;}
   }
 
 </style>

+ 2 - 2
layouts/templateB.vue

@@ -31,8 +31,8 @@
 </script>
 <style lang="scss" scoped>
   .nuxt-box:not(.client-index-page){
-    width: 100%;margin-top: 80px;
+    width: 100%;padding-top: 80px;
     // 移动端手机尺寸(0-768)
-    @media (max-width: 768px){margin-top: 61px;}
+    @media (max-width: 768px){padding-top: 61px;}
   }
 </style>