Ionic AlertController和HTML代码

时间:2017-03-15 07:02:41

标签: ionic-framework ionic2

你想要这样的东西,并将css分配给每个div和地址块。有可能???

generate_series()

1 个答案:

答案 0 :(得分:7)

你可以这样做

let alert = this.alertCtrl.create({
  title: '<h1 class="c-no-margin winner-alert-title">Congratulations!</h1>',
  message: '<div>' +
  '<p class="c-no-margin">You are the WINNER, now please submit your details to your favourite celebrity and get video call.</p>' +
  '</div>',
  buttons: [
    {
      text: 'Select Celebrity',
      handler: () => {
        this.navCtrl.push("CelebrityList");
      }
    }
  ]
});
alert.present();