javascript - 在我的情况下如何更改 Bootstrap 模式宽度?

标签 javascript css twitter-bootstrap

我使用以下方式将模态内容加载到主 html:

主要 html:

<div class="modal modal-custom fade" id="custom-view">
</div>
.....

模态 html(在单个 html 上):

<div class="modal-dialog">
    <div class="modal-content message_align">
        <div class="modal-body" align="center">
            <span class="section">Custom Info</span>
                {% crispy form form.helper%}
        </div>
    </div>
</div>

我像这样将模态内容加载到主 html:

$(".mod-custom").click(function(ev) {
    ......
    $("#custom-view").load(url, function() {
        $("#custom-view").modal('show');
    }
}

url是在modal html上渲染数据

在我的情况下,如何改变宽度?

最佳答案

希望此链接对您有所帮助。更改模态大小。 https://coolestguidesontheplanet.com/bootstrap/modal.php#myModal2

关于javascript - 在我的情况下如何更改 Bootstrap 模式宽度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40231039/

相关文章:

javascript - 从 sails js 中的 javascript 文件访问 Controller 对象

javascript - 左手分配无效

html - CSS3 图像 mask ,photoshop 风格。是否可以?

css - 404 用于 Azure 上的自定义 ttf 字体 (.NET MVC 5)

html - 将 div 与文本垂直对齐在同一行

javascript - 触发一个 :hover event by hovering on an other

javascript - 如何在本地主机上执行React D3组件

ruby-on-rails - 使用 Twitter Bootstrap 和 Simple Form 2.0 在一行中进行多个输入

jquery - Twitter Bootstrap : How to clear out a modal

jquery - 具有可点击行事件的 Bootstrap 表以及如何排除列或单元格