angular – 如何在Ionic2中使模态成为全屏?

前端之家收集整理的这篇文章主要介绍了angular – 如何在Ionic2中使模态成为全屏?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
这是我的模态代码

let modal = Modal.create(DailyReportPage);
    this.nav.present(modal);

它在手机上运行正常,但在平板电脑上它看起来像这样:

enter image description here


我想要的是让它看起来像这样:

enter image description here

解决方法

我应用这种风格:

ion-modal {
    .modal-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        display: block;
        width: 100%;
        height: 100%;
    }
}

猜你在找的Angularjs相关文章