Skip to content

Commit

Permalink
切换上下页问题处理
Browse files Browse the repository at this point in the history
  • Loading branch information
TruthHun88 committed Jul 9, 2018
1 parent afdcfc1 commit c0acd78
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions static/Home/default/js/dochub.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,8 +324,7 @@ $(function(){

//滚动到指定页
function ScrollToPage(page) {
// $('html,body').animate({scrollTop:$(".wenku-page"+page).offset().top}, 200);
$('html,body').animate({scrollTop:top+height*(page-1)}, 200);
$('html,body').animate({scrollTop:$(".wenku-page"+page).offset().top}, 200);
}

//调整当前页,用于文档预览放大或缩小时
Expand Down

0 comments on commit c0acd78

Please sign in to comment.