iOS6,UIWebView和位置:固定 [英] iOS6, UIWebView and position:fixed

查看:97
本文介绍了iOS6,UIWebView和位置:固定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个PhoneGap应用程序,该应用程序的导航栏和选项卡栏实现"为具有固定位置的div(请参见屏幕1).

We have a PhoneGap application that has navigation bar and tab bar "implemented" as divs with fixed position (see screen 1).

在iOS6中,当显示键盘时,这些div会有一些奇怪的行为.当我们输入第一个字母时,div将消失并显示空白区域.当我们关闭键盘时,一切恢复正常.

In iOS6 there's some strange behavior with these divs when the keyboard is shown. When we type a first letter the div will disappear and the blank area is displayed instead. When we're closing a keyboard everything goes back to normal.

这仅在UIWebView中发生,而在Mobile Safari中不发生.

This happens in UIWebView only and doesn't happen in Mobile Safari.

有人有类似的东西吗?我想我们不应该一个人.

Did anyone had something similar? I suppose we shouldn't be alone.

屏幕截图:

推荐答案

最后,我们必须对其进行调整,并在进入编辑字段时隐藏页脚,并在发生模糊事件时将其存储.不太好,但是有帮助.

Finally, we had to tweak that and hide the footer on entering the edit field and storing it on blurring event. Not too good, but helps.

这篇关于iOS6,UIWebView和位置:固定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆