/* 返回顶部样式 */
#goTop{
font-size: 12px;
width: 50px;
height: 50px;
line-height: 20px;
text-align: center;
position: fixed;
right: 3%;
bottom: 5%;
}
<div id="goTop">
<a href="javascript:window.scrollTo(0,0)">
<img src="images/toTop.png" width="50" height="50"/>
</a>
</div>