![](/img/trans.png)
[英]How to make custom video controller even in full-screen in angular
[英]How Can I make modal to become full-screen in Ionic2?
我應用這種風格:
ion-modal {
.modal-wrapper {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
}
}
您可以覆蓋文件variables.css
的相關Ionic Sass variables.css
:
$modal-inset-width: 100%;
$modal-inset-height-large: 100%;
文檔(當前版本為3.9,但我使用3.7): http : //ionicframework.com/docs/theming/overriding-ionic-variables/
你應該遵循Modal
模態是一個覆蓋用戶當前頁面的內容窗格。 通常用於選擇或編輯項目。
所以,如果你想顯示完整的屏幕。 我認為你創建新頁面並推動它
this.nav.push(SamplePage, {item: item});
在scss文件中應用此樣式
ion-modal {
.modal-wrapper {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
} }
它應該在你的選擇器的一邊。
例如: -
page-mymodal {
//page CSS Codes
}
ion-modal {
.modal-wrapper {
position: absolute;
top: 0;
left: 0;
display: block;
width: 100%;
height: 100%;
}
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.