修改BUG:手机模式下gotoTop按钮需要使用body
This commit is contained in:
parent
ab1b7b7957
commit
c5ad8e2e04
|
@ -141,7 +141,7 @@ $(function () {
|
|||
|
||||
$("#gotoTop").on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$('.main-content, html').animate({
|
||||
$('.main-content, html, body').animate({
|
||||
scrollTop: 0
|
||||
}, 200);
|
||||
});
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
$("#gotoTop").on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$('html').animate({
|
||||
$('html, body').animate({
|
||||
scrollTop: 0
|
||||
}, 200);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue