diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 51c4287..335b8c2 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -87,8 +87,7 @@ function toggleTheme() { box-shadow: none; .navContent { - height: 43px; - width: 100%; + height: 43px; margin: 19px 40px 18px 40px; display: flex; // 添加flex布局 justify-content: space-between; // 使子元素平均分布