This commit is contained in:
rulingcom 2022-12-09 17:32:42 +08:00
parent f90bfd399c
commit 2f0cc70b7c
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@
$('.layout-header').css('height', '');
var scrollTop = $(window).scrollTop();
if (!window.has_topest_banner){
$('.kenjohn').removeClass('navFixed').addClass('navRel');
$('.kenjohn').removeClass('navFixed').addClass('navRel'); /* 正常選單固定效果 */
}else if (scrollTop>5) { /* 要滑動到選單的距離 */
if (parseInt($('.layout-content').css('margin-top'))==0 && $('.layout-content.topcontent').length != 0 && $('.layout-content.topcontent').offset().top<400){
$('.layout-content').css('margin-top',$('.kenjohn').height()-$('#orbit-bar').height());