点击箭头返回顶部代码现实
时间:2018-04-17 16:37来源:未知 作者:边缘狂人 点击: 次
本文摘要点击箭头返回顶部代码现实
点击箭头返回顶部代码现实,
<style>
.go_to_up{position: fixed;right:3px; bottom:55px;
color:#333;
cursor:pointer;
}
</style>
<script>
$(function(){
$(".go_to_up").click(function() {
$('body,html').animate({
scrollTop: 0
},
1000);
return false;
});
});
</script>
<div class="go_to_up"><img src="/Assets/images/up.png"></div>