This commit is contained in:
rulingcom 2023-07-27 10:06:43 +08:00
parent 23210ca954
commit 6c3dd50722
1 changed files with 4 additions and 8 deletions

View File

@ -50,9 +50,6 @@
} }
function open_kenjoh(flag){ function open_kenjoh(flag){
if(flag){ if(flag){
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());
}
$('.kenjohn').addClass('navFixed').removeClass('navRel'); /* 幫選單加上固定效果 */ $('.kenjohn').addClass('navFixed').removeClass('navRel'); /* 幫選單加上固定效果 */
}else{ }else{
if ($('.header-banner').html().trim() == "") { if ($('.header-banner').html().trim() == "") {
@ -60,7 +57,6 @@
}else{ }else{
$('.kenjohn').removeClass('navRel').removeClass('navFixed'); /* 移除選單固定效果 */ $('.kenjohn').removeClass('navRel').removeClass('navFixed'); /* 移除選單固定效果 */
} }
$('.layout-content').css('margin-top','');
} }
} }
function recalc_kenjohn_header(){ function recalc_kenjohn_header(){