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