如何在Angular UI Bootstrap中增加模式宽度?

如何在Angular UI Bootstrap中增加模式宽度?,第1张

如何在Angular UI Bootstrap中增加模式宽度

我使用这样的css类来定位modal-dialog类:

.app-modal-window .modal-dialog {  width: 500px;}

然后在调用模式窗口的控制器中,设置windowClass:

    $scope.modalButtonClick = function () {        var modalInstance = $modal.open({ templateUrl: 'App/Views/modalView.html', controller: 'modalController', windowClass: 'app-modal-window'        });        modalInstance.result.then( //close function (result) {     var a = result; }, //dismiss function (result) {     var a = result; });    };


欢迎分享,转载请注明来源:内存溢出

原文地址: https://www.outofmemory.cn/zaji/5651591.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-16
下一篇 2022-12-16

发表评论

登录后才能评论

评论列表(0条)

保存