Ios soft keyboard obscures the input box

the div,fixed positioning method used in the input box. When clicking on the input box and popping up the keyboard, ios will appear the soft keyboard blocking the input box. A lot of methods have been found on the Internet. To sum up, two
1, scrollIntoViw () invalid
2, document.body.scrollTop = document.body.scrollHeight; are useful, but there are side effects. The input box does not have a cursor, send button click event is invalid, etc.
I do not know whether the gods have a solution

.

clipboard.png

May.14,2022

when the input box gets focus, increase the position of the input box to the bottom so that it is fully displayed.

Menu