您的位置:首頁技術文章
文章詳情頁

css - 輸入框定位在底部,手機端打開,輸入框聚焦后軟鍵盤打開為什么會瞬間自動關閉呢?

瀏覽:106日期:2023-01-08 08:44:52

問題描述

input聚焦之后軟鍵盤出來又瞬間自動關閉 (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:

給你個思路,搞懂正常情況下,怎么做軟鍵盤會收回。然后去看看頁面JS影響了沒

標簽: CSS
相關文章:
国产综合久久一区二区三区