优化页脚的gototop链接
This commit is contained in:
parent
f84bd2b890
commit
c9caf9d1f5
|
@ -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
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in New Issue