Explorar o código

docs(demo): 演示布局样式兼容旧版chrome39

zhaihaoyi %!s(int64=6) %!d(string=hai) anos
pai
achega
963f282051
Modificáronse 2 ficheiros con 7 adicións e 5 borrados
  1. 6 4
      demo/App.vue
  2. 1 1
      public/index.html

+ 6 - 4
demo/App.vue

@@ -63,7 +63,6 @@ $just-trans: all .2s ease-in-out;
 
   .app-bd {
     flex: 1;
-    height: 0;
     position: relative;
   }
 }
@@ -95,13 +94,16 @@ $just-trans: all .2s ease-in-out;
 }
 
 .app-main {
-  display: block;
-  padding-left: $side-width;
+  position: absolute;
+  top: 0;
+  right: 0;
+  bottom: 0;
+  left: $side-width;
   height: 100%;
   transition: $just-trans;
 
   @include screen-mob {
-    padding-left: 0;
+    left: 0;
   }
 
   /deep/ .router-tab {

+ 1 - 1
public/index.html

@@ -10,7 +10,7 @@
     <script>
     (function () {
       // 链接里带入参数debug=true以加载eruda移动端调试工具
-      var src = '//cdn.bootcss.com/eruda/1.5.2/eruda.min.js'
+      var src = '//cdn.bootcss.com/eruda/1.5.4/eruda.min.js'
       if (!/debug=true/.test(window.location) && localStorage.getItem('active-eruda') != 'true') return
       document.write('<scr' + 'ipt src="' + src + '"></scr' + 'ipt>')
       document.write('<scr' + 'ipt>eruda.init();</scr' + 'ipt>')