Anchor tag doesn't work in iPhone Safari

前端 未结 5 670
一个人的身影
一个人的身影 2020-12-06 18:10

I\'m having an issue with a named anchor tag in iPhone Safari browser. It works well in desktop browsers including Safari, but not working in mobile Safari. Weird!

F

5条回答
  •  一个人的身影
    2020-12-06 18:33

    just doing my due diligence and answering for anyone who is having this problem with Index navigation links on a Squarespace page and Safari on iOS. My anchor links were not working when formatted as such:

    http://sitename.com/page#anchor
    

    Then I tried this to no avail:

    http://sitename.com/page/#anchor"
    

    Rather than give up, light my computer on fire, and call it a day I tried:

    http://www.sitename.com/page/#anchor
    

    And it worked! So cheers if this helps anyone.

提交回复
热议问题