Does the hash navigation on iPhone works properly?

筅森魡賤 提交于 2019-12-24 13:05:19

问题


Does the hash navigation on iPhone works properly?

There is a page http://example.com/somepage, on this page there is an element which has <a href='#someIdOnPage'>. When user clicks on this element, the page scrolls down to the element having this id in the DOM and the URL in the browser is updated to http://example.com/somepage#someIdOnPage.

This is working fine on android browsers, but it breaks on apple safari. When I click on this element it doesn't scroll down to the id element. But when I load the URL http://example.com/somepage#someIdOnPage directly, it correctly scrolls down to the corresponding element.
Am I missing something here?

来源:https://stackoverflow.com/questions/35124950/does-the-hash-navigation-on-iphone-works-properly

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!