【发布时间】:2019-08-01 03:21:23
【问题描述】:
我的应用在 Ionic 4 中,但我不明白如何自定义组件。 我想在右上角显示对齐位置。
我已经在 global.css 文件和 component.css 文件中尝试过,但没有任何运气。
async getNotifications() {
const popover = await this.popoverController.create({
component: NotificationComponent,
// event: ev,
cssClass: 'notificationCSS',
translucent: true
});
return await popover.present();
}
在通知CSS中:
.notificationCSS{
top: 0px !important;
right: 0px !important;
}
【问题讨论】:
-
把cssClass放到global.scss中
标签: html css angular ionic-framework