0
点赞
收藏
分享

微信扫一扫

移动端中 H5输入框在弹起键盘后被遮挡

后来的六六 2022-03-30 阅读 59


<script type="text/javascript">
//防止键盘把当前输入框给挡住

$('input,textarea').on('click', function () {
console.log('2222');
var target = this;

setTimeout(function(){

target.scrollIntoViewIfNeeded();

},100);

});
</script>



举报

相关推荐

0 条评论