瀏覽代碼

样式优化

tanxue 3 年之前
父節點
當前提交
bf37ccd707
共有 2 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      layouts/templateA.vue
  2. 2 2
      layouts/templateB.vue

+ 2 - 2
layouts/templateA.vue

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

+ 2 - 2
layouts/templateB.vue

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