如何增加Bootstrap模态宽度? [英] How to increase Bootstrap Modal Width?
本文介绍了如何增加Bootstrap模态宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经尝试过了,但是出了错
i've tried this but gone wrong
这是CSS
body .modal-ku {
width: 750px;
}
这是失败的结果
推荐答案
在您的代码中,对于 modal-dialog
div,添加另一个类, modal-lg
:
In your code, for the modal-dialog
div, add another class, modal-lg
:
<div class="modal-dialog modal-lg">
或者如果您想使模式对话框居中,请使用:
Or if you wanna centre your modal dialog, use:
.modal-ku {
width: 750px;
margin: auto;
}
这篇关于如何增加Bootstrap模态宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文