会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
头皮发麻
记录开发中的问题
博客园
首页
新随笔
联系
订阅
管理
2020年4月27日
jquery 页面滚动到指定位置
摘要: 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)
编辑