Using localscroll
on ready but the browser snaps to hash on ready. How do I prevent that and have it scroll to the top no matter what?
if this is not possible. How do you offset the position of the window.locati开发者_如何学运维on
of hash?
Use $(window).scrollTop(0);
$(function(){
$(window).scrollTop(0);
});
精彩评论