Browse Source

手机端fontSize设置修改2

yangc 7 years ago
parent
commit
2d1ac8c07c
3 changed files with 6 additions and 4 deletions
  1. 0 3
      assets/scss/commonComponent.css
  2. 5 0
      assets/scss/mobileCommon.scss
  3. 1 1
      components/mobile/Home.vue

+ 0 - 3
assets/scss/commonComponent.css

@@ -13,9 +13,6 @@
     </div>
 </div>
 */
-html, body {
-  font-size: calc(100vw / 750 * 100) !important;
-}
 .com-del-box{
     position: fixed;
     z-index: 10;

+ 5 - 0
assets/scss/mobileCommon.scss

@@ -17,6 +17,11 @@ body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, fiel
   padding: 0;
 }
 
+/* 设置顶层fontSize */
+html, body {
+  font-size: calc(100vw / 750 * 100) !important;
+}
+
 input, select, textarea {
   font-size: 100%;
 }

+ 1 - 1
components/mobile/Home.vue

@@ -247,7 +247,7 @@
       padding-top: .46rem;
     }
     .home-main a.home-main-content {
-      width:50%;
+      width:49%;
       margin-bottom:.52rem;
       display: inline-block;
     }