文章詳情頁
css - 輸入框定位在底部,手機(jī)端打開,輸入框聚焦后軟鍵盤打開為什么會(huì)瞬間自動(dòng)關(guān)閉呢?
瀏覽:98日期:2023-01-08 08:44:52
問題描述
input聚焦之后軟鍵盤出來又瞬間自動(dòng)關(guān)閉 (fixed 和 absolute一樣)代碼:CSS<style>
.footer {width: 100%;height: 3.5rem;position: fixed;left: 0;bottom: 0;-webkit-box-sizing: border-box;-moz-box-sizing: border-box;box-sizing: border-box; } .wh_100 { width:100%; height:100%;}</style>
html:
<footer id='bottomaa'> <input class='wh_100'></footer>
問題解答
回答1:給你個(gè)思路,搞懂正常情況下,怎么做軟鍵盤會(huì)收回。然后去看看頁面JS影響了沒
標(biāo)簽:
CSS
相關(guān)文章:
排行榜

熱門標(biāo)簽