修复了在单个 HTML 中显示时工具栏无法正常工作的问题
我们使用 jQuery mobile 1.0a2 固定工具栏应用程序。然而,我们希望一次性加载所有 HTML 布局,并通过 Ajax 调用仅加载数据。我们设法使这些栏正常工作,但底部的栏表现得很奇怪,有时最终会漂浮在屏幕中间。
据我了解,这些栏旨在使用多个 HTML 进行工作。
有谁知道解决/强制这个问题的方法?
We are using jQuery mobile 1.0a2 fixed toolbars for our app. However we want to load all the HTML layout in a single attempt and from there load only the data through Ajax calls. We managed to make the bars work but the bottom one behaves quirky and sometimes ends up floating at the middle of the screen.
I understand that the bars are designed to work using multiple HTMLs.
Do anyone knows a way to fix/force this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我试图做同样的事情,并得到了你所说的同样的行为。我调查了一下,发现 Alpha 2 版本中的固定工具栏实际上存在很多已知问题。在 Alpha 3 中,他们极大地改进了固定工具栏,解决了我遇到的所有问题。
我意识到您说过升级到 Alpha 3 版本时遇到问题,我猜它在代码的其他部分引入了错误,这就是您最终没有使用它的原因。然而,如果您真的想使用这些固定工具栏,我觉得您应该真正尝试克服这些新引入的错误并开始使用 JQM Alpha 3。在使用 Alpha 2 时解决工具栏问题将变得非常困难,并且您可能不会从 JQM 专家那里得到太多帮助,因为该代码现在已经过时了......
I was trying to do the same exact thing and got this same behavior you were talking about. I looked into it, and there were actually a lot of known problems with the fixed toolbars in the Alpha 2 release. In Alpha 3 they drastically improved the fixed toolbars, and it solved all the issues I had.
I realize you said you had problems moving up to the Alpha 3 release, and I'm guessing it introduced bugs in other parts of your code which is why you didn't end up using it. However, if you're serious about using these fixed toolbars, I feel like you should really try to fight through those newly introduced errors and begin using JQM Alpha 3. Solving your toolbar issues while using Alpha 2 will end up being extremely tough, and you probably won't get much help from the JQM experts since that code is now old...