ios 键盘弹出输入框与键盘之间有灰色区域?

如下图:

clipboard.png

html结构代码如下:

<header></header>
<div id="container"></div>
<footer></footer>

css代码结构如下:

header {
        width: 100%;
        padding: 5px 0;
        height: 40px;
        line-height: 40px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 1px 1px rgba(0, 0, 0, .2);
        position: absolute;
        top: 0;
        left: 0;
    }
    
    footer {
        background: #fff;
        box-shadow: 0 -1px 3px rgba(0, 0, 0, .1);
        height: 50px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 99;
    }
    
    #container{position: absolute; top: 51px; bottom: 0; overflow-y: scroll; -webkit-  overflow-scrolling: touch;}

求解这是什么情况呢?

阅读 1.9k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题