javascript - How to trigger soft keyboard in js
黄舟
黄舟 2017-06-26 10:51:45
0
3
970

How is the soft keyboard triggered when an input or textare is clicked? Is it triggered by default? How to control the height keyboard

黄舟
黄舟

人生最曼妙的风景,竟是内心的淡定与从容!

reply all(3)
代言

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

ringa_lee

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.

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!