如何更改jconfirm-buttons样式craftpip / jquery-confirm

时间:2017-11-30 07:44:38

标签: javascript jquery css jquery-confirm jconfirm

jquery-confirm版本:v3.3.0 git:craftpip / jquery-confirm

jsfiddle for tests https://jsfiddle.net/bdtx2ub2/

<div class="jconfirm-buttons">
<button type="button" class="btn btn-info btn-block">Update</button>
<button type="button" class="btn btn-danger btn-block">Delete</button>
<button type="button" class="btn btn-default btn-block">Cancel</button>
</div>

你能帮帮我......我怎么能用类jconfirm-buttons添加到div我的班级?这个div有没有像columnClass或btnClass这样的解决方案?

我想通过添加bootstrap类btn-block来证明我在这个div中的按钮是合理的

<div class="jconfirm-buttons btn-block">
<button type="button" class="btn btn-info btn-block">Update</button>
<button type="button" class="btn btn-danger btn-block">Delete</button>
<button type="button" class="btn btn-default btn-block">Cancel</button>
</div>

image

我想做什么

image

我该怎么做?有没有javascript的解决方案?或者我怎么能用js来做(认为我可以证明他们在事件“onOpen”上绑定这个javascript)?

1 个答案:

答案 0 :(得分:3)

Here jsfiddle链接。这个解决方案不好但仍然有效。

onOpenBefore:function(){
            this.buttons.close.el[0].parentNode.className+=" btn-block";
        },
相关问题