修改移动端样式
All checks were successful
Gitea Actions Official-website / deploy-dev (push) Successful in 3s

This commit is contained in:
2026-04-15 16:37:32 +08:00
parent d6ce8aa2be
commit 1ed900d2b5
10 changed files with 1012 additions and 13 deletions

View File

@@ -112,9 +112,27 @@
display: none;
}
/* .sub-menu {
display: none;
} */
.sub-menu {
display: none;
/* height: 100vh; */
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
/* .sub-menu-overflow {
max-height: calc(100vh - 180px);
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
} */
.sub-menu.show {
display: block;
@@ -422,3 +440,15 @@
display: flex;
align-items: center;
}
/* 产品列表的子菜单不需要滚动 */
.menu-item:first-child .sub-menu {
max-height: none !important;
overflow-y: visible !important;
}
/* 其他导航的子菜单使用JS动态设置高度 */
.has-child:not(:first-child) .sub-menu {
overflow-y: auto;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 262 B

After

Width:  |  Height:  |  Size: 356 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 520 B

After

Width:  |  Height:  |  Size: 991 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 868 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

After

Width:  |  Height:  |  Size: 211 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 514 B

After

Width:  |  Height:  |  Size: 1021 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 326 B

After

Width:  |  Height:  |  Size: 521 B