I have a site with a header set to position: fixed
. On one of my pages, I use scrollIntoView(true)
on an element. My problem is that when scrollIntoView
is called, the element gets positioned underneath the header. How would I fix this so that the element is shown just below the header?
I'm using the Bootstrap framework and the header is styled with navbar navbar-fixed-top
.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…