This commit is contained in:
rulingcom 2022-12-09 12:23:53 +08:00
parent e8d8dc8863
commit e38925f397
1 changed files with 3 additions and 4 deletions

View File

@ -12,18 +12,17 @@
}
});
function fix_first_element() {
console.log("fix_first_element");
if (!window.has_topest_banner) {
$('.downIcon').css('display','none');
var first_element = $('.header-banner');
if(first_element.length == 0){
first_element = $('.layout-content .layout-content-inner');
first_element = $('.layout-content .layout-content-inner').eq(0);
}else{
if(first_element.html() == ''){
first_element = $('.layout-content-box').eq(0);
first_element = $('.layout-content .layout-content-inner').eq(0);
}
}
if(first_element.length){
if(first_element.length != 0){
first_element.css("margin-top", "");
var ele_offset = first_element[0].getBoundingClientRect().top;
if(first_element.parents('.kenjohn.navFixed').length == 0)