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 here
without 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
Post a Comment