admin管理员组文章数量:1122846
android:windowSoftInputMode="adjustResize"
.bg-img {
--background: linear-gradient(0deg, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9)), url('./assets/imgs/bg1.jpg') no-repeat center center fixed;
//--background: url('./assets/imgs/bg1.jpg') no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
position: relative;
background-position: center center;
background-attachment: fixed;
height: 100vh;
width: 100%;
object-fit:cover;
}
<ion-content class="bg-img" padding>
<div class="login-box">
<div class="logo">
<img src="assets/imgs/logo.png" />
</div>
<form [formGroup]="loginForm">
<ion-item>
<ion-icon name="person" class="text-primary"></ion-icon>
<ion-input #inputLogin type="text" formControlName="username" required label-placement="floating" fill="solid"
label="User Id"></ion-input>
</ion-item>
<ion-item>
<ion-icon name="lock-closed" class="text-primary"></ion-icon>
<ion-input
type="Password"
fill="solid"
label="Pssword"
labelPlacement="floating" formControlName="password" required></ion-input>
</ion-item>
<ion-item class="text-input remember-me" style="margin-left: -30px;">
<ion-checkbox color="light" class="custom-checkbox" formControlName="rememberMe"></ion-checkbox>
<ion-label style="margin-left: -75px;">REMEMBER_ME</ion-label>
</ion-item>
<ion-row>
<ion-button class="btn-login" (click)="loginBtnClicked()">
<ion-icon slot="start" name="arrow-forward-outline"></ion-icon>
<span>Login</span>
</ion-button>
</ion-row>
<ion-row>
<ion-button class="btn-access-request" (click)="goToWebSite()">
<ion-icon name="key-outline"></ion-icon>
Access
</ion-button>
</ion-row>
</form>
</div>
</ion-content>
本文标签:
版权声明:本文标题:android - How to restrict background image move up after keyboard open in ionic7, capacitor? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736281831a1926445.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论