页面滚动到指定class样式位置
var winTop =$(window).scrollTop(); var top = document.getElementsByClassName('is-danger')[0].getBoundingClientRect().top; window.scrollTo(0,winTop-Math.abs(top))
var winTop =$(window).scrollTop(); var top = document.getElementsByClassName('is-danger')[0].getBoundingClientRect().top; window.scrollTo(0,winTop-Math.abs(top))