I made a simple html page for tablet/smartphone (landscape layout). I have a problem when I tap on a input to write some text, the virtual keyboard move/push every elements.
Screenshot :
Any way to prevent that ?
It appears your CSS is tied to a percentage of the view height, so when the keyboard is opened the height becomes smaller and shrinks your container.
if you give your main container a min-height you should be able to prevent this happening
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.