PHP实现JS点击点击定位

Posted on 2018-11-28 14:18  jiaoqing。  阅读(386)  评论(0)    收藏  举报

点击class='women' 定位到 class='m=foot'
$(".women").on('click',function(){
$("html, body").animate({
scrollTop: $(".m-foot").offset().top }, {duration: 500,easing: "swing"});
return false;
});

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3