离子键盘正在调整我的背景

时间:2016-07-30 04:06:29

标签: javascript android html cordova ionic-framework

我是离子版1.x.x开发的初学者。 我试图在登录页面中设置完整的图像背景。 但是当键盘出现时,背景图像正在调整大小并且非常烦人。请帮我。感谢



.auth.scroll-content{ 
background: url('../../img/background/NIKE_5_Futsal.jpg') no-repeat; 
background-size: cover; 
background-position: center; 
margin: auto; 
z-index: 2; 
}

<ion-view hide-nav-bar="true">
    <ion-content padding="true" class="auth" scroll="false">
        <h3>Welcome</h3>

        <form name="loginForm" ng-submit="login.loginSubmit(loginForm.$valid)" novalidate>
            <div class="list">
                <label class="item item-input">
                    <input type="email" placeholder="Email" ng-model="login.userData.email" required />
                </label>
                <label class="item item-input">
                    <input type="password" placeholder="Password" ng-model="login.userData.password" required />
                </label>
                <button class="button button-full button-assertive" ng-disabled="loginForm.$invalid">Login</button>

                <button class="button button-full button-clear button-positive icon-right ion-chevron-right" ui-sref="register">Register</button>
            </div>
        </form>
    </ion-content>
</ion-view>
&#13;
&#13;
&#13;

0 个答案:

没有答案