我正在尝试创建具有透明背景的模态,但是它不起作用
ion-content {
--background-color: rgba(255, 255, 255, 0.7);
}
.closeBtn {
position: absolute;
bottom: 0px;
left: 0px;
right: 0px;
}
Test.
Close
我希望看到一些透明性。
global.css
.modal-wrapper{ background: transparent !important; }
page.scss
ion-content{ --background: transparent; }