$(function(){
$('#goto_top_btn').click(function() {
var s = $(window).scrollTop(),h = $(window).height();
if (s > h * 2) {
$('html, body').scrollTop(0);
} else {
$('html,body').animate({scrollTop: '0px'}, 300);
}
});
});

 

<div class="fix-layout">
<div >举报</span>
</a>
</div>
</div>

相关文章:

  • 2022-01-01
  • 2022-01-01
  • 2022-03-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-07
猜你喜欢
  • 2021-06-23
  • 2022-01-01
  • 2022-01-01
相关资源
相似解决方案