菜单固定于上方

This commit is contained in:
zhaoxiao
2021-10-21 13:51:22 +08:00
parent e50d4d4f03
commit f7d502d171
4 changed files with 285 additions and 256 deletions
+1
View File
@@ -118,5 +118,6 @@
color: #069f99;
overflow: hidden;
word-break: keep-all;
white-space: nowrap;
text-overflow: ellipsis;
}
+1 -1
View File
@@ -191,7 +191,7 @@ body {
}
.layout {
min-height: 100vh !important;
min-height: calc(100vh - 10px) !important;
overflow-x: hidden;
&.mobile {
+3 -2
View File
@@ -16,8 +16,9 @@ const enquireScreen = function (call) {
call && call(1)
}
}
enquireJs.register('screen and (max-width: 1087.99px)', handler)
enquireJs.register('screen and (max-width: 767.99px)', handler2)
// 将max-width设为0,防止转换为手机模式,将菜单隐藏至左侧
enquireJs.register('screen and (max-width: 0px)', handler)
enquireJs.register('screen and (max-width: 0px)', handler2)
}
export default enquireScreen