【问题标题】:How to change bootstrap confirmation width如何更改引导确认宽度
【发布时间】:2018-08-21 20:45:39
【问题描述】:

我正在使用 Bootstrap Confirmation (http://bootstrap-confirmation.js.org/) 插件。

<div class="col-xs-4 actions">
    <span class="btn btn-danger remove" data-confirm="confirmation" 
          confirm-title="Do you really want to remove item?" 
          data-singleton="true"><i class="fa fa-trash"></i></span>
</div>

$('[data-confirm=confirmation]').confirmation({
    title: function () { return $(this).attr("confirm-title"); },
    placement: 'bottom',
    btnOkClass: 'btn-xs btn-danger',
    btnOkLabel: '<i class="icon-ok-sign icon-white"></i> Tak',
    btnOkIcon: 'glyphicon glyphicon-trash',
    btnCancelLabel: '<i class="icon-remove-sign"></i> Nie',
    popout: true
});

确认弹出框太窄。如何增加此弹出框的宽度?

【问题讨论】:

    标签: twitter-bootstrap width popover confirmation


    【解决方案1】:

    解决方法是像这样传递 container 参数:

    $('[data-confirm=confirmation]').confirmation({
        title: function () { return $(this).attr("confirm-title"); },
        placement: 'bottom',
        btnOkClass: 'btn-xs btn-danger',
        btnOkLabel: '<i class="icon-ok-sign icon-white"></i> Tak',
        btnOkIcon: 'glyphicon glyphicon-trash',
        btnCancelLabel: '<i class="icon-remove-sign"></i> Nie',
        container: 'body',
        popout: true
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-28
      • 1970-01-01
      • 2016-10-03
      • 2019-12-06
      • 2017-08-17
      相关资源
      最近更新 更多