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

后端 未结 7 1639
梦毁少年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:16

    There's the culprit in your #footer class bottom:0px; If you give bottom to any element, on appearance of virtual keyboard, those elements move upwards in iOS 7. The workaround is to use top property.

提交回复
热议问题