这是我的代码。当我单击它时,它会显示一个带有其自动生成的CSS的弹出窗口。我想通过调用一些ID和类对CSS进行一些更改。我如何给它赋予ID或类,以便可以通过调用类或ID来更改CSS。

$scope.showPopup = function() {
$scope.data = {}

// An elaborate, custom popup
    var myPopup = $ionicPopup.show({

  title: 'Social Media Services',

  scope: $scope,
  buttons: [
  {
  type :'ion-social-facebook positive button-large',

      onTap: function(e) {
       //$cordovaSpinnerDialog.show("aaa", "aaaa");
         window.open('https://www.facebook.com/BinDawood.Co', '_system', 'location=yes');
      }
    },
    { type :'ion-social-twitter calm',
      onTap: function(e) {
      // $cordovaSpinnerDialog.show("aaa", "aaaa");
         window.open('https://twitter.com/BinDawoodco', '_system', 'location=yes');
      }
    },
    {  type :'ion-social-pinterest assertive',
      onTap: function(e) {
      // $cordovaSpinnerDialog.show("aaa", "aaaa");
          window.open('http://pinterest.com/bindawoodco', '_system', 'location=yes');
      }
    },

  ]
});
myPopup.then(function(res) {
  console.log('Tapped!', res);
});


};

最佳答案

在作为$ ionicPopup.show参数传递的对象中添加属性cssClass

  cssClass: '', // String, The custom CSS class name

10-04 21:48
查看更多