html - Bootstrap : modals wtih different width

标签 html css twitter-bootstrap less

我有很多模态框。如何为它们中的每一个设置不同的(固定的)宽度?如果除了使用 LESS 还有其他方法,请告诉我。谢谢。

最佳答案

您可以像这样覆盖内联宽度:

<div class="modal fade" id="correctModal" style="width: 400px;">

或者像这样在css中添加样式:

<div class="modal fade" id="correctModal">

CSS

#correctModal{
width:400px;
}

关于html - Bootstrap : modals wtih different width,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11965988/

相关文章:

html - 正文溢出 : scroll not working as expected

javascript - 如何在模糊的 div 上打印无模糊内容

html - 导航栏在 Twitter bootstrap 3 中的绝对定位

javascript - 将鼠标悬停在网页顶部的图像上后,我想根据图像悬停特定的 div 并隐藏其他 div

javascript - Vue.js - "Bind" Bootstrap 模态到 Vue 模型

php - 网站无法在 IE8 中运行,但可以在 Google Chrome 中运行

相当于 "font size+2"的 HTML 样式标签

html - 动态调整照片大小而不是缩回

javascript - Bootstrap 冲突或错误 - 仍在寻找解决方案

html - 切换按钮不会关闭 - MVC 5/Bootstrap 3