First of all, js cannot control the height of the soft keyboard of the mobile phone system because the system mechanism of each mobile phone manufacturer is different. In fact, it should feel that what you are asking is the impact on the layout of your page after the soft keyboard pops up, especially for Android phones. If it is In this case, you can use $(window).resize() to monitor
I’m sorry to tell you that the system’s soft keyboard height cannot be modified directly. The solution to related problems is basically to obtain the soft keyboard height and then change the page layout to compress it upward so as not to block the part you want to display.
First of all, js cannot control the height of the soft keyboard of the mobile phone system because the system mechanism of each mobile phone manufacturer is different. In fact, it should feel that what you are asking is the impact on the layout of your page after the soft keyboard pops up, especially for Android phones. If it is In this case, you can use $(window).resize() to monitor
The soft keyboard will appear when it gets focus, and disappear when it loses focus
I’m sorry to tell you that the system’s soft keyboard height cannot be modified directly. The solution to related problems is basically to obtain the soft keyboard height and then change the page layout to compress it upward so as not to block the part you want to display.