标签: javascript mobile responsive scrolltop
我想滚动到移动设备顶部的“ 0”(例如450px宽度)上,单击按钮:
$(".edgtf-btn.edgtf-btn-solid").click(function () { $('html,body').animate({ scrollTop: ($("#portfolio-lista").offset().top - 43) + 'px' }, 600, 'easeOutQuad'); });