本文实例讲述了JS采用绝对定位实现回到顶部效果。分享给大家供大家参考,具体如下:
绝对定位回到顶部按钮 body{margin:0px;padding:0px;height:2500px;background:#6f0024;} #div1{width:120px;height:34px;right:4px;bottom:5px;cursor:pointer;background:url(images/ToTop.png) no-repeat;position:fixed;_position:absolute;display:none;}


