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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -