jquery 实现返回顶部功能(2)
复制代码 代码如下: #backTop i,#callSurvey i{background:url(survey.png) no-repeat;} #pubFeedBack{position:fixed;_position:absolute;right:15px;bottom:15px;width:54px;font-size:12px;} #backTop,#c
复制代码 代码如下:
#backTop i,#callSurvey i{background:url(survey.png) no-repeat;}
#pubFeedBack{position:fixed;_position:absolute;right:15px;bottom:15px;width:54px;font-size:12px;}
#backTop,#callSurvey{display:block;width:52px;padding:1px;height:56px;line-height:22px;text-align:center;color:#fff;text-decoration:none;}
#backTop{display:none;background:#999;}
#backTop:hover{background:#ccc;zoom:1;text-decoration:none;color:#fff;}
#backTop i{display:block;width:25px;height:13px;margin:14px auto 8px;background-position:-63px 0;}
#callSurvey{margin-top:1px;background:#3687d9;}
#callSurvey:hover{background:#66a4e3;zoom:1;text-decoration:none;color:#fff;}
#callSurvey i{display:block;width:26px;height:25px;margin:9px auto 0;background-position:0 0;}
#callSurvey:hover i{background-position:-30px 0;}
代码很简单,各位直接拿去,放在自己项目中即可,如有bug请给我留言,共同完善
精彩图集
精彩文章