我使用以下方式将模态内容加载到主 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/