摘要: var winTop =$(window).scrollTop(); var top = document.getElementsByClassName('is-danger')[0].getBoundingClientRect().top; window.scrollTo(0,winTop-Math.abs(top)) 阅读全文
posted @ 2018-07-13 10:10 748573200000 阅读(576) 评论(0) 推荐(0) 编辑