我正在为我的网站创建一个 HTML 页面,但不幸的是,顶部导航菜单的固定位置在 iPhone 中不起作用。
谁能帮帮我吗 ?
干杯,
Position:fixed was supported as of iOS 5, if you are trying or hoping to make it work on anything older ( iOs4 ) you are out of luck as it was not supported. "iOS4 and below simply treats elements as static and scrolls them along with the rest of the page."
我在不久前制作的移动网站上遇到了同样的问题,最终成功了!
也许如果我可以看看你的源代码,看看它是否解决了问题并将它发回这里。:)