Js返回页面顶部

1 <div id="sbar"
2         style="display:block;position:fixed;top:500px;right:10px;width:20px;height:70px;background-color:red;cursor:pointer;" 
3         ><a style="text-decoration:none;" href="#" onclick="javascript:window.scroll(0,0);">返回顶部</div> 

 

posted @ 2014-01-22 11:43  烟花易冷丶人心易凉  阅读(214)  评论(0编辑  收藏  举报