摘要: var position = $(".element").offset(); position.top = position.top-60; $("html,body").animate({scrollTop:position.top}, 100); 首先获取某元素的位置 第二部 top 就是元素在 阅读全文
posted @ 2020-04-27 16:38 头皮发麻 阅读(8869) 评论(0) 推荐(2) 编辑