From 7380fb16d7caf8bdd013b8d0556cf20ae44c95f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=B7=E5=92=8C=E6=B2=B9?= <2249412933@qq.oom> Date: Fri, 20 Jun 2025 13:56:59 +0800 Subject: [PATCH] =?UTF-8?q?style=EF=BC=9A=E9=A1=B6=E9=83=A8=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/index/view/mobile/public/header.html | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/index/view/mobile/public/header.html b/app/index/view/mobile/public/header.html index d8c30371..0abf9d9e 100644 --- a/app/index/view/mobile/public/header.html +++ b/app/index/view/mobile/public/header.html @@ -107,5 +107,16 @@ $('.top-country .close-icon').click(function(){ $(".mask,.action-sheet").hide(); }) + + // 移动端顶部宽度设置和主体内容宽度一致 + var pageWidth = $('.oricoEGapp').outerWidth(); + // 设置.header-PC元素的宽度 + $('.oircoEgapp-head').css('width', pageWidth + 'px'); + // 可选:监听窗口大小变化,实时更新宽度 + $(window).resize(function() { + var newWidth = $('.oricoEGapp').outerWidth(); + $('.oircoEgapp-head').css('width', newWidth + 'px'); + }); + }) \ No newline at end of file