Div element won't stay at the bottom when ios 7 virtual keyboard is present

后端 未结 7 1618
梦毁少年i
梦毁少年i 2020-12-02 05:31

I\'m having a problem with a div element to stick to the bottom of my web app when ios 7 virtual keyboard appears after pressing a textbox.

I\'ve this div element:

7条回答
  •  离开以前
    2020-12-02 06:13

    EDIT: Okay, I found another possible solution. Check your html meta tags for something like this:

    
    

    Replace it with this:

    
    

    This fixed the problem for me. I should note that my app is using Cordova though.

    Another possible solution:

    If you look in config.xml (probably under the resources directory, you should see a line that says:

    
    

    If you set that to true, it keeps footers from moving above the soft keyboard. However, this also causes the keyboard to sometimes cover up the text field that the user is typing in.

提交回复
热议问题