解决IOS fixed定位问题

时间:2026-02-12 00:58:55

1、所有外层元素都使用fixed布局,如:

<header style="position:fixed"></header>

<article style="position:fixed"></article>

<footer style="position:fixed"></footer>

2、使用absolute定位,并使用javascript动态改变层的位置

3、在有输入框输入的时候,隐藏fixed层或设计为relative

© 2026 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com