From 43724ea79eeb1768fd696011a2bcc7fbf0926641 Mon Sep 17 00:00:00 2001 From: CFF <1730422060@qq.com> Date: Sun, 26 Oct 2025 15:56:40 +0800 Subject: [PATCH] =?UTF-8?q?css=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/static/css/myCenter.css | 93 +++++++++++----------- src/main/resources/static/css/pages.css | 44 +++++----- 2 files changed, 69 insertions(+), 68 deletions(-) diff --git a/src/main/resources/static/css/myCenter.css b/src/main/resources/static/css/myCenter.css index 124eb31..9503c1a 100644 --- a/src/main/resources/static/css/myCenter.css +++ b/src/main/resources/static/css/myCenter.css @@ -1,117 +1,118 @@ +/*这段 CSS 代码主要用于设置网站导航栏、侧边栏和主内容区的样式,整体风格统一且带有交互效果。*/ .navbar-default{ - transition: all 0.6s; - background-color: #219ED8; - border: 0; - border-radius: 0; + transition: all 0.6s; /* 所有样式变化添加0.6秒过渡动画(如hover效果、展开收起) */ + background-color: #219ED8;/* 导航栏背景色:亮蓝色 */ + border: 0;/* 取消默认边框 */ + border-radius: 0;/* 取消默认圆角,改为直角 */ } -.header{ - text-align: center; - letter-spacing: 1rem; +.header{ + text-align: center;/* 文本居中对齐 */ + letter-spacing: 1rem;/* 字符间距1rem,增强标题的视觉松散感 */ } .navbar{ - min-height: 5.4rem !important; + min-height: 5.4rem !important;/* 导航栏最小高度5.4rem(!important强制覆盖默认值) */ } -@media screen and (min-width:1000px){ +@media screen and (min-width:1000px){ /* 屏幕宽度≥1000px时生效 */ -.nav-con{ - padding: 0 12rem; -} + .nav-con{/* 导航内容容器 */ + padding: 0 12rem;/* 左右内边距12rem,让导航内容在大屏上两侧留白,居中展示 */ + } } label{ - display: none; + display: none;/* 隐藏所有