when using position: absolute
you must make parent relative.
In your case you added position:absolute;
to .scroll-btn
so you must add position: relative
to it's parent. here is <a href="#about">
.
NOTE: if still difference in multiple browser, add display:block,/*inline-block*/
to tag <a>
because default <a>
display is inline
and if you add display to tag, browser understood, and if you don't add display to your absolute
tags, each browser make it by default values of it and show wrong.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…