【问题标题】:angular-bootstrap-ui modal size doesn't workangular-bootstrap-ui 模态大小不起作用
【发布时间】:2014-04-30 15:54:29
【问题描述】:

如何在大尺寸上调整 Angular ui 引导模式的大小,它看起来不起作用?通过文档页面,添加 size 属性 https://github.com/angular-ui/bootstrap/tree/master/src/modal/docs 就足够了,当我尝试将 size='lg' (使用 ui-bootstrap 版本 0.10.0)添加到 example.js open function in plunker from official page时,它没有工作http://plnkr.co/edit/lNqi9T8HRUHzcleY68KB?p=preview

【问题讨论】:

    标签: angularjs angular-ui angular-ui-bootstrap


    【解决方案1】:

    我从来没有遇到过该功能。我们只需使用 windowClass 属性向模态框添加一个类就可以了。

    CSS
    .full .modal-dialog{
        width:auto;
        margin-left:20px;
        margin-right:20px;
    }
    
    $modal.open({
       template:'blah.htm',
       windowClass:'full'
       controller:'blahCntrl'
    });
    

    【讨论】:

      【解决方案2】:

      它“不起作用”,因为引入此功能的提交 (https://github.com/angular-ui/bootstrap/commit/976f6083e8485333612b05c023a3c490404543f0) 尚未发布,因此它不是官方 0.10.0 版本的一部分。

      您需要等待 0.11.0 版本(希望是本周末)或从 master 分支构建您自己的版本,如下所述:https://github.com/angular-ui/bootstrap#development

      【讨论】:

      • 嗯...那肯定可以解释这一点!
      猜你喜欢
      • 2015-10-05
      • 2014-08-14
      • 2023-03-23
      • 2021-05-05
      • 1970-01-01
      • 1970-01-01
      • 2017-02-05
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多