Ionic framework and bottom fixed content

后端 未结 7 1281
长情又很酷
长情又很酷 2021-02-01 07:20

I am trying to implement a simple page with a login form (user/password text input + 1 button). I would like to fix this form to the bottom of a ion-content. But it does not wor

7条回答
  •  野的像风
    2021-02-01 07:59

    I ended up more or less circumventing Ionic's intentions and using a flex box layout:

    
        
    ...
    ...
    ...

    The SCSS, using Ionic's mixins, looks something like this:

    .flex-wrapper {
        @include display-flex;
        @include flex-direction(column);
        ...
    }
    
    .flex-1 {
        @include flex(1);
        ...
    }
    

提交回复
热议问题