From 9445054fe3e0665c9392527675ddfcb8240e3019 Mon Sep 17 00:00:00 2001 From: hym Date: Mon, 21 Oct 2024 15:35:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=EF=BC=8C=E4=BF=AE=E5=A4=8D=E5=9C=A8=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=B5=8F=E8=A7=88=E5=99=A8=E7=AA=97=E5=8F=A3=E5=A4=A7=E5=B0=8F?= =?UTF-8?q?=E4=B8=8B=E8=8F=9C=E5=8D=95=E4=B8=8D=E6=98=BE=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/public/Header.vue | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/src/components/public/Header.vue b/src/components/public/Header.vue index 5bdff54..fe11f48 100644 --- a/src/components/public/Header.vue +++ b/src/components/public/Header.vue @@ -227,8 +227,9 @@ export default { methods:{ //当屏幕小于1400时添加一个属性,大于的时候删除属性 changeClass() { - let ww = document.body.clientWidth; - if( ww > 1300 ){ + // let ww = document.body.clientWidth; + let ww=window.innerWidth; + if( ww > 1366 ){ this.navShow=true } else{ this.navShow=false @@ -297,7 +298,7 @@ export default { } // .menu>li>a -@media (max-width: 1300px){ +@media (max-width: 1366px){ .container_a{ padding-top:0; } @@ -308,10 +309,10 @@ export default { position: relative; } header #topnanv{ - width: 50%; + width: 350px; margin:0 auto; - left: 22%; - top: 90px; + right: 25px; + top: 40px; position: absolute; z-index: 45; @@ -339,8 +340,4 @@ export default { font-size: 15px; } - - - - - + \ No newline at end of file