方案1 : 给input绑定个focus事件,处理一下页面的scrollTop值 方案2 : css 当输入框获得焦点, 改变位置 input:focus{ position:fixed; top:50px; } 参考: 移动端web页面使用position:fixed问题总结 · Issue #2 · maxzhang/maxzhang.github.comhttps://github.com/maxzhang/m...
方案1 :
给input绑定个focus事件,处理一下页面的scrollTop值
方案2 :
css
当输入框获得焦点, 改变位置https://github.com/maxzhang/m...