我有 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/