`

返回页面顶部

 
阅读更多
Js代码 
  1. // Back To Top  
  2. $(document).ready(function(){  
  3.   $('.top').click(function() {   
  4.      $(document).scrollTo(0,500);   
  5.   });  
  6. });  
  7. //Create a link defined with the class .top  
  8. <a href="#" class="top">Back To Top</a>  

转自:http://www.iteye.com/news/28047

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics