From 74da5f0d434681ca8e9090e242e7fd29c144ebcb Mon Sep 17 00:00:00 2001
From: spring <2396852758@qq.com>
Date: 星期六, 15 二月 2025 16:15:02 +0800
Subject: [PATCH] 工时管理30%

---
 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