H5安卓软键盘弹出把底部内容顶上去处理
解决方案就是,监听窗口变化,如果窗口变小就将 body html 高度变大使得内容能够全部展示出来,在窗口变回原来大小的时候body,html高度应该要还原,直接上代码如下
<template>
<div class="dedicatedLine-box" refs="dedicatedLine">
<div class="headers-box">
<!-- <div class="top-box"></div> -->
<div class="headers" flex="cross:center">
<div class="L" @click="goback" flex="cross:center main:right">
<div class="arrows"></div>
</div>
<div class="title">专线定制</div>
<div class="R"></div>
</div>
</div>
<div class="content-box">
<div class="content">
<div class="dot-box" flex="main:justify cross:center">
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
<div class="dot-item"></div>
</div>
<div class="items" flex="cross:center">