【发布时间】:2019-08-11 22:27:18
【问题描述】:
在 iOS 中打开键盘时,我的 ion-content 的背景图像会向上移动。我怎样才能阻止这个? 我使用的是电容器而不是 Cordova。
<ion-content>
<div class="content">
.content {
width: 100%;
height: 100%;
padding: 0;
position: relative;
background: url("./../../../assets/img/login-bg.jpg") no-repeat fixed center;
background-size: cover !important;
background-attachment: fixed;
background-repeat: no-repeat;
background-position: left;
}
我已经在 AndroidManifest.xml 中有一个适用于 Android 的解决方案:
<activity android:windowSoftInputMode="adjustPan" />
【问题讨论】:
标签: ios ionic-framework capacitor