html - How to lengthen scroll when using scrollTop()? -


i'm using scrolltop() method in website. works fine on screen realized when homepage on bigger screen, scrollbar not scroll down. there way fix this?

enter code herewithout editing scroll function need ensure body height. should @ least 50px > window height. inside of $(document).ready add this:

$("body").css("height", window.outerheight + 50 + "px") 

ie:

$(document).ready(function(){         $('[data-toggle="tooltip"]').tooltip();         $("body").css("height", window.outerheight + 50 + "px") }); 

Comments

Popular posts from this blog

Sort a complex associative array in PHP -

c++ - Fill edges and center of array/vector with different values -

python 2.7 - Counting the columns with missing values in a pandas dataset -