diff --git a/src/layout/components/AppMain.vue b/src/layout/components/AppMain.vue index f87627d59..33b30dddf 100644 --- a/src/layout/components/AppMain.vue +++ b/src/layout/components/AppMain.vue @@ -30,6 +30,7 @@ export default defineComponent({ .app-main { min-height: calc(100vh - 70px); width: 100%; + height: 100vh; position: relative; overflow-x: hidden; } diff --git a/src/style/index.scss b/src/style/index.scss index 6a4b18ffb..47750ef5a 100644 --- a/src/style/index.scss +++ b/src/style/index.scss @@ -29,7 +29,7 @@ html { #app { width: 100%; height: 100%; - overflow-x: hidden; + overflow: hidden; } *, @@ -77,6 +77,11 @@ ul { padding: 20px; } +// 隐藏滚动条 +// .element::-webkit-scrollbar { width: 0 !important } //webkit +// .element { -ms-overflow-style: none; } //IE 10+ +// .element { overflow: -moz-scrollbars-none; } //Firefox + .login, .register { width: 100%;