首页 > 安卓父元素fied定位,input被输入法遮挡

安卓父元素fied定位,input被输入法遮挡

父元素fixed,子元素absolute,input被遮挡,只有安卓出现
这个问题百度之后发现是ios的一个fix定位bug,只是在这种情况下恰好符合预期,但安卓被遮挡不知道怎么弄
如果把fixed改成absolute可以解决,但是需求是要把输入框定在屏幕中央,不能随着底部图片进行滚动

<div class="container" style="position: fixed">
    <div class="box" style="position: absolute">
        <input type="text">
        <input type="text">
        <input type="text">
        <input type="text">
        <!--下面被输入法遮挡-->
        <input type="text">
    </div>
</div>

【热门文章】
【热门文章】