From 1614b560ff113305a7953d4b7306d38eb857a138 Mon Sep 17 00:00:00 2001 From: Childish-Ghost Date: Fri, 18 Jul 2025 23:40:11 +0800 Subject: [PATCH] =?UTF-8?q?V0.1.2.20250718=20=E2=80=94=E2=80=94=E2=80=94?= =?UTF-8?q?=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94?= =?UTF-8?q?=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=201.=E8=B7=AF?= =?UTF-8?q?=E7=94=B1=E9=87=8D=E5=AE=9A=E5=90=91=202.Home=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=A4=B4=E9=83=A8=E5=AE=8C=E6=88=90=20=E2=80=94=E2=80=94?= =?UTF-8?q?=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94?= =?UTF-8?q?=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94=E2=80=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/ordinary/Home.css | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/src/assets/ordinary/Home.css b/src/assets/ordinary/Home.css index 6f073e5..f26a363 100644 --- a/src/assets/ordinary/Home.css +++ b/src/assets/ordinary/Home.css @@ -1,36 +1,41 @@ -body{ +body { background-color: #f5f5f5; margin: 0; padding: 0; width: 100%; height: 100vh } -.container{ + +.container { width: 90%; height: 10vh; margin: 0 auto; } -.logo{ + +.logo { background-color: #4081bf; } -/*菜单*//*重定高度*/ +/*菜单-重定高度*/ .el-menu--horizontal { display: flex; flex-wrap: nowrap; max-height: 70px; - --el-menu-horizontal-height: 65%; min-height: 40px; + --el-menu-horizontal-height: 65%; } + /* 使用 Flex 布局控制菜单 */ .el-menu-demo { display: flex; } + /* 创建弹性空间 */ .flex-grow { flex-grow: 1; } + /* 确保菜单项正常显示 */ .el-menu-item { width: 10vw; @@ -41,10 +46,12 @@ body{ .demo-type { display: flex; } + .demo-type > div { flex: 1; text-align: center; } + .demo-type > div:not(:last-child) { border-right: 1px solid var(--el-border-color); } \ No newline at end of file