手机端H5动画输入框键盘如何弹出跳转如何实现?

有大神说在canvas页面用ontouch事件,然后用fouce()调出输入面板,安卓要加上调取输入面板不变形的代码。
具体怎么实现?求解蟹蟹。

阅读 3k
1 个回答
$('input').on('touchstart', function() {
    $('input').focus()
})
$('#tiaozhuan').on('touchstart', function() {
    window.location.href = 'xxx.html'
})
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题