Bottom positioning, keyboard pop-up, position change problem


now the prompt will be squeezed up when the keyboard pops up on the Android. What is the reason for this? Find the solution

Mar.20,2021

$('body'). Height ($(' body') [0] .clientHeight);


var HEIGHT = $('body').height();
$(window).resize(function () {
    $('div').height(HEIGHT);
});

clipboard.png

boldly guess that fixed positioning is used here, if not, please ignore the one below.

< hr >

if it is fixed positioning, you can do this:
when the input box gets focus, set the bottom element to position:absolute
restore your original position:fixed when you lose focus


just put the text message at the bottom of absolute. Fixed doesn't support ios Android very well
or use flex

.
Menu