位置:固定;键盘在kitkat上打开时无法正常工作

时间:2014-11-20 08:12:07

标签: android jquery html css android-4.4-kitkat

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

以下代码在4.0.3上工作但位置:修复了键盘打开时不能在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

1 个答案:

答案 0 :(得分:1)

那里的星星是什么? 尝试设置

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