【问题标题】:position: fixed; not working when keyboard opened on kitkat位置:固定;在 kitkat 上打开键盘时不起作用
【发布时间】:2014-11-20 08:12:06
【问题描述】:

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

以下代码在 4.0.3 上工作,但 position:fixed 在键盘打开时无法在 kitkat 上工作。 (在网络视图上运行)

<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

【问题讨论】:

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


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 2020-02-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-04-05
      • 2018-11-26
      • 1970-01-01
      相关资源
      最近更新 更多