js滚动条滚动到某个元素位置

scrollTo(0,document.getElementById('xxx').offset().top);

  

posted on 2016-09-28 13:40  多多明明  阅读(2167)  评论(0)    收藏  举报