瀏覽代碼

【优化】解决全局有滚动条问题

cherishsince 1 年之前
父節點
當前提交
b9460d2028
共有 1 個文件被更改,包括 6 次插入1 次删除
  1. 6 1
      src/layout/Layout.vue

+ 6 - 1
src/layout/Layout.vue

@@ -72,7 +72,12 @@ $prefix-cls: #{$namespace}-layout;
 .#{$prefix-cls} {
   background-color: var(--app-content-bg-color);
   :deep(.#{$elNamespace}-scrollbar__view) {
-    height: 100% !important;
+    //height: 100% !important;
+    position: absolute;
+    top: 0;
+    left: 0;
+    right: 0;
+    bottom: 0;
   }
 }
 </style>