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

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -