android - 位置 : fixed; not working when keyboard opened on kitkat

标签 android jquery html css android-4.4-kitkat

我有 3 个设备 4.0.3 和双胞胎 4.4。

以下代码可在 4.0.3 上运行,但 position:fixed 在键盘打开时无法在 kitkat 上运行。 (在 webview 上运行)

<style>
body
{

    margin:0;
    padding:0;
}
#footer {
    **position: fixed;**
    bottom: 0;
    width: 100%;
    background:#99cc00;
    height:60px;
}

</style>
<center><input type="text" style="margin:100;"></center>
<div id="footer">

我找到了这个条目,但没有解决我的问题。

jQuery Mobile fixed footer is moving when the keyboard appears

window.resize due to virtual keyboard causes issues with jquery mobile

jQuery Mobile fixed footer is moving when the keyboard appears

最佳答案

那里有什么星星? 尝试设置

position:fixed; 
bottom:0;
left:0;

关于android - 位置 : fixed; not working when keyboard opened on kitkat,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27034674/

相关文章:

jquery - .css() 直到第二次单击才更改 - 使用共享类选择器

javascript - 当用户拖动并进行选择并获取所选文本时调用函数

php - Javascript从php生成的图像中获取图像大小

android - 无法通过 ViewPropertyAnimator 更改 View 大小?

java - src.type() == CV_8UC1 断言在校正图像时失败

javascript - 根据类别脚本显示字段集

html - wkwebview - 将文档目录中的图像显示到本地 html

android - 修改现有的 Android ROM 以控制用户操作

java - 安卓/PHP : Login successful but Failed redirect to the next activity

javascript - 如何通过html将flask base_url发送到js文件