点击p跳到div的位置
$(".p").click(function() {
$("html, body").animate({
scrollTop: $(".div").offset().top }, {duration: 500,easing: "swing"});
return false;
});
点击p跳到div的位置
$(".p").click(function() {
$("html, body").animate({
scrollTop: $(".div").offset().top }, {duration: 500,easing: "swing"});
return false;
});