<ins id="di738"></ins>
<xmp id="di738"><form id="di738"><button id="di738"></button></form>
<button id="di738"></button>
<xmp id="di738"><button id="di738"></button><form id="di738"></form>
<button id="di738"></button>
<button id="di738"></button>
<form id="di738"></form>
<xmp id="di738">
<form id="di738"></form><form id="di738"></form><xmp id="di738"><form id="di738"></form>
<xmp id="di738"><form id="di738"></form><xmp id="di738"><xmp id="di738"><form id="di738"></form>
<xmp id="di738">
<xmp id="di738"><xmp id="di738"><form id="di738"><button id="di738"></button></form><xmp id="di738"><xmp id="di738"><form id="di738"></form>
<xmp id="di738"><form id="di738"><form id="di738"></form></form>
<form id="di738"></form>
<xmp id="di738"><ins id="di738"></ins>
<xmp id="di738"><form id="di738"><form id="di738"></form></form>
<xmp id="di738">
<form id="di738"></form><ins id="di738"></ins><xmp id="di738"><form id="di738"><form id="di738"></form></form><xmp id="di738"><form id="di738"></form><xmp id="di738"><form id="di738"><form id="di738"></form></form>

H5開發app解決輸入文本時,軟鍵盤遮蓋掉頁面

分類:靖凱學堂     發布時間:2018-09-28 17:34:31
分享到 :

首先我們要清楚輸入時候觸發軟鍵盤的時候我們觸發了什么事件,是調整瀏覽器窗口的大小時的resize事件

我們知道了觸發了什么事件就好辦了,我們做一個監聽這個事件的方法就好

以下是范例代碼,使用了jq的resize監聽

QQ圖片20180928173129.png

以下范例代碼,是使用了js原生對resize的監聽寫法

QQ圖片20180928173149.png