离子键盘向上移动内容

问题描述 投票:2回答:1

我是离子框架的初学者。只是为应用程序做标记而不是开发整个应用程序。

在聚焦场上键盘打开并向上推离子脚,我设置了位置和底部值,但它们都没有工作。

这是页面的代码。

<ion-pane class="login">
      <ion-content class="has-footer" scroll="false">
          <div class="row topgap">
              <div class="col-80 col-offset-10">                  
                  <div class="fixWidthContainer">
                      <h2 class="text-center">Welcome to Givi</h2>
                      <input type="text" placeholder="Full Name" />
                      <input type="email" placeholder="Email" />
                      <input type="password" placeholder="Password" />
                      <br />
                      <button class="button button-full LoginButton">Sign up</button>
                      <button class="button button-full LoginButton facebook">Sign up using Facebook</button>
                  </div>
              </div>
          </div>
      </ion-content>

      <ion-footer-bar class="transparentfooter">
          <button href="#" class="button footercustombutton">Login</button>
      </ion-footer-bar>
  </ion-pane>

此外,当键盘打开背景值时,封面也会自行调整并变小。怎么办......

ionic-framework ionic
1个回答
0
投票

检查此值是否为false,将其更改为true

  <preference name="Fullscreen" value="true" />
© www.soinside.com 2019 - 2024. All rights reserved.