Browse Source

错误页面样式

yangc 7 years ago
parent
commit
a412337466
2 changed files with 6 additions and 2 deletions
  1. 3 1
      layouts/error.vue
  2. 3 1
      layouts/errorPage.vue

+ 3 - 1
layouts/error.vue

@@ -53,7 +53,9 @@
       }
     }
     &.mobile-page {
-      background: #ebfdff url("/images/404-mobile.png")no-repeat center center;
+      background: #ebfdff url("/images/404-mobile.png")no-repeat;
+      background-size: contain;
+      background-position-y: 3rem;
       position: fixed;
       top: 0;
       bottom: 0;

+ 3 - 1
layouts/errorPage.vue

@@ -53,7 +53,9 @@
       }
     }
     &.mobile-page {
-      background: #ebfdff url("/images/404-mobile.png")no-repeat center center;
+      background: #ebfdff url("/images/404-mobile.png")no-repeat;
+      background-size: contain;
+      background-position-y: 3rem;
       position: fixed;
       top: 0;
       bottom: 0;