返回顶部 解决方案
1.jquery 返回顶部
<div onclick="$('body,html').animate({scrollTop:0},800);" id="reture_top"> </div>
<style type="text/css">
#reture_top{
position: fixed;
bottom: 50px;
right: 60px;
border: solid 1px #ccc;
cursor: pointer;
font-family: 微软雅黑;
background: url(/images/newVersion201608/tophovertree.gif) no-repeat;
width: 36px;
height: 36px;
display: none;
}
</style>
<script type="text/javascript">
$(document).scroll(function () {
var top=$("body").scrollTop();
if(top>560){
$("#reture_top").show();
}
else {
$("#reture_top").hide();
}
})
</script>

浙公网安备 33010602011771号