jquery - Anchor Links Changes Based on Site/Device Width? -
Therefore, on my website, I am using a smooth scroll and I will use an anchor ID in the context of scrolling points on the page I am using
The anchor code is simple, like this:
& lt; An id = "about" & gt; & Lt; / A & gt;
And it works while using a regular href, though, I noticed that when I was on my phone, when the anchor links were pressed, it would give me a random point , And not on the exact location of the anchor on the page. It seems that this change in every device (for example, some above the anchor, some devices will fall down on the width)
This is just a basic JavaScript, making anchor point Is there a way complete?
Comments
Post a Comment