jquery 页面滚动到指定DIV实现代码


  本文标签:页面滚动

参数id为页面元素id
复制代码 代码如下:

function mScroll(id){$("html,body").stop(true);$("html,body").animate({scrollTop: $("#"+id).offset().top}, 1000);}