摘要: 阅读全文
posted @ 2018-08-09 17:27 月光分层 阅读(118) 评论(0) 推荐(0)
摘要: 就是个减法。。。用当前元素的距离文档的绝对高度 - 文档的滚动高度 =当前元素距离 阅读全文
posted @ 2018-08-09 17:22 月光分层 阅读(115) 评论(0) 推荐(0)
摘要: $("html, body").scrollTop(0).animate({scrollTop: $("#scroll").offset().top}); $("#scroll").offset().top可以换成 20000数值大就可以了 阅读全文
posted @ 2018-08-09 15:28 月光分层 阅读(118) 评论(0) 推荐(0)