阅读背景:

移动端 常见问题整理 iOS下的 Fixed + Input 调用键盘的时候fixed无效问题解决方案

来源:互联网 

使用iScroll时,input等不能输入内容的解决方法

<script>
function allowFormsInIscroll(){
 [].slice.call(document.querySelectorAll('input, select, button')).forEach(function(el){
 el.addEventListener(('ontouchstart' in window)?'touchstart':'mousedown', function(e){
 e.stopPropagation();
 })
 })
 }
 document.addEventListener('DOMContentLoaded', allowFormsInIscroll, false);
 </script><script>
functio



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: