【发布时间】:2018-11-03 20:12:10
【问题描述】:
我需要更改我的警报弹出窗口的css,这意味着我想将标题颜色更改为白色并将背景颜色更改为灰色。任何人都可以帮助这怎么可能?谢谢。
presentPrompt() {
let alert = this.alertCtrl.create({
title: 'Add Your Question',
inputs: [
{
name: 'would',
placeholder: 'Would You ',
},
{
name: 'rather',
placeholder: 'Rather'
}
],
buttons: [
{
text: 'Add',
role: 'add',
handler: data => {
this.wouldquestion = data.would;
this.ratherquestion = data.rather;
this.afd.list("Questions/").push({
would:this.wouldquestion,
rather:this.ratherquestion,
ratherclick:this.ratherclicks,
wouldclick:this.wouldclicks
});
}
},
]
});
alert.present();
}
【问题讨论】:
-
您希望整个弹出窗口的背景或仅标题的背景发生变化?
-
是的,有可能。你是想只弹出这个弹出窗口还是弹出所有应用程序
-
只有这个弹出窗口。更改整个弹出窗口的背景颜色
标签: ionic-framework sass ionic3