js 定位到指定位置
时间:2015-05-12 18:29:02
收藏:0
阅读:180
<script>
//滚动定位到product
function scroll() {
var scroll_offset = $("#product").offset();
$("body,html").animate({
scrollTop: scroll_offset.top
}, 0);
}
</script>
原文:http://www.cnblogs.com/ft-Pavilion/p/4497958.html
评论(0)