twitter-bootstrap - bootstrap css - 如何在不影响背景的情况下制作模态对话框模态

标签 twitter-bootstrap

在 Bootstrap css 中,可以显示一个模态对话框,但我希望能够使其成为模态,以便后面的 UI 不响应,而不显示深黑色背景。

似乎没有选项可以让我在 $("#selector").modal() 函数上执行此操作。

最佳答案

添加 data-backdrop="false"<div class="modal"> Bootstrap 将完成剩下的工作。

例子:

<div class="modal" id="genericModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="false">

关于twitter-bootstrap - bootstrap css - 如何在不影响背景的情况下制作模态对话框模态,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8168746/

相关文章:

javascript - 页面左侧和右侧的 Bootstrap 附加

html - 如何不继承 parent 的CSS样式?

javascript - 在HTML幻灯片中使用jQuery触发音频播放吗?

html - 为什么这张图片有右边距?

html - 下拉菜单类别/子类别

html - 导航栏文本元素未垂直对齐 (CSS/Bootstrap)

php - Bootstrap 足球队动态布局

html - Bootstrap 网格,填充问题导致背景溢出

html - 媒体查询 : sending an image from the top to the bottom of the page

html - 让 Bootstrap 3 按钮组正确触发 Accordion 的问题