Fix bug.
This commit is contained in:
parent
23210ca954
commit
6c3dd50722
|
@ -50,9 +50,6 @@
|
|||
}
|
||||
function open_kenjoh(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'); /* 幫選單加上固定效果 */
|
||||
}else{
|
||||
if ($('.header-banner').html().trim() == "") {
|
||||
|
@ -60,7 +57,6 @@
|
|||
}else{
|
||||
$('.kenjohn').removeClass('navRel').removeClass('navFixed'); /* 移除選單固定效果 */
|
||||
}
|
||||
$('.layout-content').css('margin-top','');
|
||||
}
|
||||
}
|
||||
function recalc_kenjohn_header(){
|
||||
|
@ -639,11 +635,11 @@
|
|||
};
|
||||
|
||||
//header banner setting
|
||||
if ( location.href.search('editmode=on') != -1 ) {
|
||||
$('.header-banner').css('z-index','2');
|
||||
if ( location.href.search('editmode=on') != -1 ) {
|
||||
$('.header-banner').css('z-index','2');
|
||||
$('.header-banner').css('margin-top','8em');
|
||||
} else {
|
||||
$('.header-banner').css({
|
||||
} else {
|
||||
$('.header-banner').css({
|
||||
'width': '100%',
|
||||
'position': 'relative',
|
||||
'top': '0',
|
||||
|
|
Loading…
Reference in New Issue