修改BUG:手机模式下gotoTop按钮需要使用body

This commit is contained in:
Argo-MacBookPro 2018-10-06 15:24:02 +08:00
parent ab1b7b7957
commit c5ad8e2e04
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ $(function () {
$("#gotoTop").on('click', function (e) {
e.preventDefault();
$('.main-content, html').animate({
$('.main-content, html, body').animate({
scrollTop: 0
}, 200);
});

View File

@ -29,7 +29,7 @@
$("#gotoTop").on('click', function (e) {
e.preventDefault();
$('html').animate({
$('html, body').animate({
scrollTop: 0
}, 200);
});