GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - liangzai92/InputToView: 移动web开发,兼容虚拟键盘遮挡输入框的问题

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
src
src
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
README.md
README.md
 
 
package.json
package.json
 
 

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开发,兼容虚拟键盘遮挡输入框的问题

adebibi.com

Topics

h5iphone

Resources

Readme
Activity

Stars

7 stars

Watchers

0 watching

Forks

4 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.