var winTop =$(window).scrollTop();
var top = document.getElementsByClassName('is-danger')[0].getBoundingClientRect().top;
window.scrollTo(0,winTop-Math.abs(top))
2024-03-21 18:04:58
var winTop =$(window).scrollTop();
var top = document.getElementsByClassName('is-danger')[0].getBoundingClientRect().top;
window.scrollTo(0,winTop-Math.abs(top))