我需要一些适当的滚动解决方案为底部的标签。工作代码可以查看在:this linkjquery滚动到页面底部
检查网页设计的页脚链接等jQuery代码是:
$(document).ready(function() {
$('.locations div').hide();
$('#footer ul.left li a').click(function() {
$('#footer ul.left li').removeClass('active');
$(this).parent().addClass('active');
var currentTab = $(this).attr('href');
$('.locations div').hide("normal");
$(currentTab).show("normal");
$("html, body").animate({
scrollTop: $(document).height()
}, "normal");
return false;
});
});
的问题是:一个链接滚动窗口上点击向下的情况下正确,但当另一个链接被点击时,页面中会出现一个小混蛋。也再次点击相同的链接。滚动上升但内容不隐藏。