twitter-bootstrap - 如何更改 Bootstrap 确认宽度

标签 twitter-bootstrap width popover confirmation

我正在使用 Bootstrap 确认 ( 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
});

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

Too narrow confirmation popover

最佳答案

解决方案是传递容器参数,如下所示:

$('[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
});

关于twitter-bootstrap - 如何更改 Bootstrap 确认宽度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49258810/

相关文章:

twitter-bootstrap - 为什么我的按钮不像其他元素那样居中?

html - 如何使用 css bootstrap 创建按钮组?

css - 在导航菜单中设置下拉菜单的大小

html - 定义 <li> anchor 宽度

ios - 如何快速关闭弹出窗口

python - 有什么方法可以在 django 模板中允许\n? ( Bootstrap 弹出窗口)

jquery - 使用 jquery 更改 Bootstrap 类的类名

android - 如何设置 ListView 分隔线的宽度?

swift - 更改弹出框高度并取消隐藏新区域

twitter-bootstrap - b 表中的 BootstrapVue 条件列