From b46e9e115016f6ea57bb5437834c4acadf5cc8ac Mon Sep 17 00:00:00 2001 From: AviderMin Date: Wed, 30 Oct 2024 21:01:17 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E8=88=AA=E6=A0=8F=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- WebNews/css/common.css | 23 +++++++++++++++++++++++ WebNews/foucsreport.html | 5 +++-- WebNews/index.html | 10 +++++----- 3 files changed, 31 insertions(+), 7 deletions(-) diff --git a/WebNews/css/common.css b/WebNews/css/common.css index 804eb49..0d472ed 100644 --- a/WebNews/css/common.css +++ b/WebNews/css/common.css @@ -46,6 +46,7 @@ a{ } .navbtn{ line-height: 65px; + height: 60px; float: left; margin: 0 20px; } @@ -60,4 +61,26 @@ a{ background-color: #3fa8ea; line-height: 100px; text-align: center; +} +.DStyle { + position: relative; + width: fit-content; + +} + +.DStyle::after { + content: ''; + display: block; + width: 100%; + height: 3px; + position: absolute; + bottom: -5px; + background: #0091ea; + transition: all 0.3s ease-in-out; + transform: scale3d(0, 1, 1); + transform-origin: 50% 0; +} + +.DStyle:hover::after { + transform: scale3d(1, 1, 1); } \ No newline at end of file diff --git a/WebNews/foucsreport.html b/WebNews/foucsreport.html index 86049f4..6d6084b 100644 --- a/WebNews/foucsreport.html +++ b/WebNews/foucsreport.html @@ -118,8 +118,9 @@ window.addEventListener('scroll', function () { let pro = (window.pageYOffset / totalHeight) * 100; - Prostick.style.width = pro + '%'; - }); + Prostick.style.width = pro + '%'; + }); + \ No newline at end of file diff --git a/WebNews/index.html b/WebNews/index.html index 2e7c2f2..308c615 100644 --- a/WebNews/index.html +++ b/WebNews/index.html @@ -18,11 +18,11 @@