Skip to content

移动web开发,兼容虚拟键盘遮挡输入框的问题

Notifications You must be signed in to change notification settings

liangzai92/InputToView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

InputToView

移动 web 开发,浏览器兼容性,虚拟键盘遮挡输入框的问题

问题

虚拟键盘高度稍微有点高,就会挡住底部的 input 输入框

用法

import InputToView from "src/index.js";

let el = document.getElementById("#myInput");
let options = {
  delay: 300,
  interval: 300
};
const myInput = new InputToView(el, options);

代码

代码没做什么神奇的事情 仅仅只是给指定的 input 元素 绑定了 focus 和 blur 事件,十分简单

About

移动web开发,兼容虚拟键盘遮挡输入框的问题

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published