如何增加 Bootstrap 模态宽度? [英] How to increase Bootstrap Modal Width?

查看:28
本文介绍了如何增加 Bootstrap 模态宽度?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试过了,但出错了

这里是css

body .modal-ku {宽度:750px;}

这是失败的结果

解决方案

在您的代码中,为 modal-dialog div 添加另一个类 modal-lg:

或者,如果您想将模态对话框居中,请使用:

.modal-ku {宽度:750px;保证金:自动;}

i've tried this but gone wrong

here's the css

body .modal-ku {
width: 750px;
}

and here's the failed result

解决方案

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆