滚动到顶部
滾動到頂部代碼:
$(window).scroll(function(){var scroll = document.body.scrollTop | document.documentElement.scrollTop; //兼容if(scroll > 0) $("#totop").fadeIn(500);else $("#totop").fadeOut(500);});?
轉載于:https://www.cnblogs.com/oneday/p/4288355.html
總結
- 上一篇: shell安装mysql,连接数据库,创
- 下一篇: 程序员面试题准备(1)单链表逆置