返回顶部功能
摘要:css:/* gototop */#gotop{ display:none; width:55px; height:55px; position:fixed; right:50px; bottom:50px; background:url(../images/backtop.png) no-repeat -70px 0px; }html: jquery:function goTop(){ $(window).scroll(function(e) { //若滚动条离顶部大于100元素 if($(window).scrollTop()>100) $("#gotop").f
阅读全文
posted @ 2014-02-09 15:37
浙公网安备 33010602011771号