Compare commits
2 Commits
e7a232ac9c
...
2566538006
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2566538006 | ||
|
|
64ff307d57 |
@@ -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');
|
||||
});
|
||||
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user