From f74ede07f8e84b3a8ab18f8c5e82bb542e233c45 Mon Sep 17 00:00:00 2001 From: gaoluyang <gaoluyang@rengu.cc> Date: 星期三, 12 二月 2025 15:11:18 +0800 Subject: [PATCH] 基础配置修改 --- src/layout/components/Navbar.vue | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index 5b45e3c..bb34f1b 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -114,9 +114,14 @@ .navbar { height: 50px; overflow: hidden; - position: relative; + //position: relative; background: #fff; box-shadow: 0 1px 4px rgba(0,21,41,.08); + position: fixed; /* 灏嗗ご閮ㄥ浐瀹� */ + top: 0; /* 鍦ㄩ《閮ㄥ浐瀹� */ + width: 100%; /* 瀹藉害100%锛岃鐩栨暣涓鍙� */ + //background-color: #f8f9fa; /* 璁剧疆鑳屾櫙棰滆壊锛屼互渚挎洿鏄庢樉鍦扮湅鍒版晥鏋� */ + z-index: 1000; /* 纭繚澶撮儴鍦ㄥ叾浠栧唴瀹逛箣涓� */ display: flex; align-items: center; justify-content: space-between; @@ -125,6 +130,8 @@ width: 118px; height: 40px; img { + width: 118px; + height: 40px; margin-left: 20px; cursor: pointer; } -- Gitblit v1.9.3