<tfoot id='wqEfT'></tfoot>

      <bdo id='wqEfT'></bdo><ul id='wqEfT'></ul>

    <small id='wqEfT'></small><noframes id='wqEfT'>

  • <legend id='wqEfT'><style id='wqEfT'><dir id='wqEfT'><q id='wqEfT'></q></dir></style></legend>
      1. <i id='wqEfT'><tr id='wqEfT'><dt id='wqEfT'><q id='wqEfT'><span id='wqEfT'><b id='wqEfT'><form id='wqEfT'><ins id='wqEfT'></ins><ul id='wqEfT'></ul><sub id='wqEfT'></sub></form><legend id='wqEfT'></legend><bdo id='wqEfT'><pre id='wqEfT'><center id='wqEfT'></center></pre></bdo></b><th id='wqEfT'></th></span></q></dt></tr></i><div id='wqEfT'><tfoot id='wqEfT'></tfoot><dl id='wqEfT'><fieldset id='wqEfT'></fieldset></dl></div>
      2. 修复位置:在 iOS 4 中修复

        时间:2023-10-23
          <bdo id='5DUbO'></bdo><ul id='5DUbO'></ul>
          <i id='5DUbO'><tr id='5DUbO'><dt id='5DUbO'><q id='5DUbO'><span id='5DUbO'><b id='5DUbO'><form id='5DUbO'><ins id='5DUbO'></ins><ul id='5DUbO'></ul><sub id='5DUbO'></sub></form><legend id='5DUbO'></legend><bdo id='5DUbO'><pre id='5DUbO'><center id='5DUbO'></center></pre></bdo></b><th id='5DUbO'></th></span></q></dt></tr></i><div id='5DUbO'><tfoot id='5DUbO'></tfoot><dl id='5DUbO'><fieldset id='5DUbO'></fieldset></dl></div>
        • <legend id='5DUbO'><style id='5DUbO'><dir id='5DUbO'><q id='5DUbO'></q></dir></style></legend>

              • <small id='5DUbO'></small><noframes id='5DUbO'>

                <tfoot id='5DUbO'></tfoot>

                    <tbody id='5DUbO'></tbody>

                  本文介绍了修复位置:在 iOS 4 中修复的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我正在使用 PhoneGap HTML/CSS 构建一个小应用程序.现在我的问题是 position:fixed (在顶部栏上使用)适用于 iOS 5 但不适用于 iOS 4.有人知道解决这个问题吗?

                  I am building a small app using PhoneGap HTML/CSS. Now my problem is that position:fixed (used on a top bar) works on iOS 5 but not on iOS 4. Someone knows a fix for this?

                  推荐答案

                  Position:fixed 在版本 5 之前的 iOS 和其他一些移动浏览器上不起作用.有很多解决方案,但我个人可以推荐的一个是由 Nitobi 编写的 GloveBox拥有 Jesse MacFadyen.它允许您定义可滚动的区域,我相信在您的情况下这将是主要内容,而顶部栏不可滚动.这种方法的另一个优点是,用户将无法像移动 Safari 上的普通网站一样滚动"出您的应用视图.

                  Position:fixed doesn't work on iOS before version 5 and some other mobile browsers. There are a lot of solutions out there for this, but one that I can personally recommend is GloveBox written by Nitobi's own Jesse MacFadyen. It lets you define areas that are scrollable, and I believe in your case that would be the main content, while the top bar isn't scrollable. Another advantage of this approach is that the user won't be able to "scroll out" of your app's view as if it were a normal website on Mobile Safari.

                  这篇关于修复位置:在 iOS 4 中修复的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:iphone:如何对崩溃报告进行符号化? 下一篇:如何比较iphone中的两个日期?

                  相关文章

                    <small id='RrcG0'></small><noframes id='RrcG0'>

                      <i id='RrcG0'><tr id='RrcG0'><dt id='RrcG0'><q id='RrcG0'><span id='RrcG0'><b id='RrcG0'><form id='RrcG0'><ins id='RrcG0'></ins><ul id='RrcG0'></ul><sub id='RrcG0'></sub></form><legend id='RrcG0'></legend><bdo id='RrcG0'><pre id='RrcG0'><center id='RrcG0'></center></pre></bdo></b><th id='RrcG0'></th></span></q></dt></tr></i><div id='RrcG0'><tfoot id='RrcG0'></tfoot><dl id='RrcG0'><fieldset id='RrcG0'></fieldset></dl></div>
                      • <bdo id='RrcG0'></bdo><ul id='RrcG0'></ul>
                      <legend id='RrcG0'><style id='RrcG0'><dir id='RrcG0'><q id='RrcG0'></q></dir></style></legend>
                    1. <tfoot id='RrcG0'></tfoot>