简体   繁体   English

为什么我的粘性导航无法在iPad上使用?

[英]Why does my sticky navigation doesn't work on my ipad?

My one-page website ( http://www.stefaanoyen.be ) features a sticky navigation, but it doesn't work as expected on my iPad. 我的单页网站( http://www.stefaanoyen.be )具有粘性导航,但是在iPad上无法正常使用。 It always stays on top of the page, but when I click the links, nothing happens. 它始终位于页面顶部,但是当我单击链接时,什么也没有发生。 The links only work when I'm on the top of the page or when the section the link is pointing to is already partially visible. 仅当我位于页面顶部或链接所指向的部分已经部分可见时,这些链接才起作用。

I don't know if this is a javascript, css or html problem. 我不知道这是否是javascript,css或html问题。 In short, I have no clue why it's going wrong, please help me out here : ) 简而言之,我不知道为什么会出错,请在这里帮助我:)

Thanks so much for helping me out! 非常感谢您的帮助! Stefaan 斯特凡

Pretty sure postion:fixed on mobile browsers is not supported. 可以肯定,不支持在移动浏览器上postion:fixed Check out this quirksmode article, it explains why. 看看这篇quirksmode文章,它解释了原因。 http://www.quirksmode.org/blog/archives/2010/12/the_fifth_posit.html http://www.quirksmode.org/blog/archives/2010/12/the_fifth_posit.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM