ngDialog 设置其宽度大小

【ngdialog弹窗大小设置(angularjs)】

方法一:添加css样式属性

css:

.ngdialog.ngdialog-theme-plain.custom-width-70 .ngdialog-content {
70%;
}

ngDialog :

$scope.patentEdit = function(){
ngDialog.open({
template: 'html/patentEdit.html',
className: 'ngdialog-theme-plain custom-width-70',
scope: $scope,
cache: false
});
};

方法二:width写在控制器里面

ngDialog :
$scope.tipExper4 = function(){
ngDialog.open({
template: 'html/tipExper4.html',
className: 'ngdialog-theme-default',
300,
height: 400,
scope: $scope,
cache: false
});
}

(ngDialog dome 地址)https://github.com/likeastore/ngDialog#ngdialog
原文地址:https://www.cnblogs.com/miny-simp/p/6092772.html