离子2如何改变模态高度和宽度 [英] Ionic 2 How to Change Modal Height and Width

查看:112
本文介绍了离子2如何改变模态高度和宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的应用程序上有一个页面有一个模态页面我希望更改该页面的大小,我尝试使用模型属性来更改它但是它会改变所有其他页面的大小而我想要拥有不同尺寸的不同型号

I have a page on my application that has a Modal Page and I want to change the size of that page, I try to use the model property to change it but it will change the size of all the other ones and I want to have different models with different sizes

$modal-inset-min-width


推荐答案

将此添加到 app.scss

.my-modal {
    height: 50%!important;
    width: 50%!important;
} 

这篇关于离子2如何改变模态高度和宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆