ngDialog 设置其宽度大小


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

方法一:添加css样式属性

css:

.ngdialog.ngdialog-theme-plain.custom-width-70 .ngdialog-content {
width: 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',
width:300,
height: 400,
scope: $scope,
cache: false
});
}

(ngDialog dome 地址)https://github.com/likeastore/ngDialog#ngdialog


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM