Bởi: Tô Mỳ Tôm
Jquery Tự Động Canh Nút Backtop Với Footer Khi Sử Dụng Position Fixed
Code Jquery $(window).scroll( function(){ var show = $(window).scrollTop() + $(window).height(); var hide = $(document).height() - $('footer').height(); var height = $(document).height() - show; $('.div_backtop').css("bottom",$('footer').height() - height); if(show < hide || $(window).width()<=767){...
Xem tiếp...
Để lại suy nghĩ của bạn