textarea在页面加载时自动获取焦点,同时页面上推,安卓手机失败
我贴一下代码
< form bindsubmit = "formSubmit" > < view class = "section" > < textarea name = "receiveAnswer" placeholder = "请输入上方口令" placeholder-style = "color:#fff;font-size:34rpx;" adjust-position = 'true' focus = "true" cursor-spacing = "40" /> </ view > < view class = 'openwrap' > < view class = 'openbtn' > < button formType = "submit" >開</ button > </ view > </ view > </ form > |
这段程序在ios手机上是可以的,能够正常获取焦点,并实现页面上推功能;但在安卓手机上就会出现页面加载,获取了一下焦点,然后又焦点又自动消失了;开发者工具中无法测到这个问题,根本没有模拟键盘
1 回复