优化页脚的gototop链接

This commit is contained in:
Argo-Lenovo 2016-11-19 12:03:32 +08:00
parent f84bd2b890
commit c9caf9d1f5
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@
if (breadcrumb === "") $('.breadcrumb > li + li').hide(); if (breadcrumb === "") $('.breadcrumb > li + li').hide();
else $('.breadcrumb > li + li').text(breadcrumb); else $('.breadcrumb > li + li').text(breadcrumb);
$(".go-top").click(function (e) { $("#gotoTop").on('click', function (e) {
e.preventDefault(); e.preventDefault();
$('#main-content, .content-body, body').animate({ $('#main-content, .content-body, body').animate({
scrollTop: 0 scrollTop: 0

View File

@ -2,7 +2,7 @@
<footer class="site-footer"> <footer class="site-footer">
<div class="text-center"> <div class="text-center">
<span id="websiteFooter"></span> <span id="websiteFooter"></span>
<a href="#" class="go-top tooltips" data-placement="left" data-original-title="返回顶部"> <a id="gotoTop" href="#" class="go-top tooltips" data-placement="left" data-original-title="返回顶部">
<i class="fa fa-angle-up"></i> <i class="fa fa-angle-up"></i>
</a> </a>
</div> </div>