Angularjs材质模态窗口不以屏幕为中心

时间:2016-06-29 13:23:49

标签: javascript html css angularjs

我正在使用角度材质模式来创建弹出窗口。 问题是窗口不在屏幕中心。

enter image description here

这是控制器方:

$scope.showTabwtr = function(ev) {
$mdDialog.show({
  controller: DialogController,
  templateUrl: 'templates/jargon/wtr.tmpl.html',
  parent: angular.element(document.body),
  windowClass: 'center-modal',
  targetEvent: ev,
  clickOutsideToClose:true
})
    .then(function(answer) {
      $scope.status = 'You said the information was "' + answer + '".';
    }, function() {
      $scope.status = 'You cancelled the dialog.';
    });
  }

如何在此代码中引用css文件?谢谢你的帮助

0 个答案:

没有答案
相关问题