javascript - 从 Bootstrap 模态窗口中删除模态属性

标签 javascript jquery twitter-bootstrap

如何操作 Bootstrap 的模态对话框,使其不显示为没有灰色覆盖的模态窗口。

<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

最佳答案

$("#myModal").modal({
  backdrop: none;
});

引用这个讨论:Change the background color in a twitter bootstrap modal?

关于javascript - 从 Bootstrap 模态窗口中删除模态属性,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35474663/

相关文章:

javascript - TinyMCE 斜体标签未显示

javascript - IE 低于 11,jquery Easydropdown 不选择下拉列表中的最后一项

c# - 当我想要同名控件时如何处理 "FindControl requires that controls have unique IDs"?

css - Bootstrap : using both the top and bottom fixed navbar for different widths

javascript - 使用 Bootstrap 模式作为成人内容警告的问题

javascript - 如何使用 Chrome 扩展程序访问 CookieStore?

javascript - Web2PDF 不读取 Javascript 或 Php 值

javascript - 了解 jQuery 中的处理程序

javascript - 我怎样才能在vue js中传递字段Rating的值?

twitter-bootstrap - UIWebView 响应 "Dynamic Type", iPad 的文字大小设置