优化页脚的gototop链接
This commit is contained in:
parent
f84bd2b890
commit
c9caf9d1f5
|
@ -16,7 +16,7 @@
|
|||
if (breadcrumb === "") $('.breadcrumb > li + li').hide();
|
||||
else $('.breadcrumb > li + li').text(breadcrumb);
|
||||
|
||||
$(".go-top").click(function (e) {
|
||||
$("#gotoTop").on('click', function (e) {
|
||||
e.preventDefault();
|
||||
$('#main-content, .content-body, body').animate({
|
||||
scrollTop: 0
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<footer class="site-footer">
|
||||
<div class="text-center">
|
||||
<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>
|
||||
</a>
|
||||
</div>
|
||||
|
|
Loading…
Reference in New Issue