Quellcode durchsuchen

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

cherishsince vor 1 Jahr
Ursprung
Commit
b9460d2028
1 geänderte Dateien mit 6 neuen und 1 gelöschten Zeilen
  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>