Ionic 3弹出窗口颜色变化

时间:2018-10-28 09:30:28

标签: ionic-framework sass ionic3

我需要更改警报弹出窗口的css,这意味着我想将标题颜色更改为白色,将背景颜色更改为灰色。有人可以帮忙吗?谢谢。

Popup color change white to any other

 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();
}

1 个答案:

答案 0 :(得分:0)

<form>
  <input type="text" class="regFname" placeholder="First name: ">
  <button type="button">Register</button>
</form>
<p>Current Users</p>
<ul></ul>