If you have a fixed position div set to the bottom of the screen, this div does not stay at the bottom while the virtual keyboard is shown. It would move up as the height of the page increases. This problem does not occur in iOS 5 as the div continues to stay at the bottom like it should. Any help?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Could you simply hide the fixed div while the keyboard is active?
$("#text_field").focus(function(){
$("#fixed_div").hide();
});
$("#text_field").blur(function(){
$("#fixed_div").show();
});