html - 我的 Bootstrap 模式显示正常,但背景不会褪色

标签 html css twitter-bootstrap

任何想法,为什么当这个模态出现时我的背景不会消失?

<div id="myModal" class="modal fade" style="" >
  <div class="modal-dialog" style="position: relative;  top: 137px;width:1000px;height:350px;">
    <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">Modal title</h4>
      </div>
<div class="modal-body">
                    <div>
                        <table id="foobar" class="table table-condensed table-striped table-bordered small">
                            <thead>
                                <th style="width:100px;">Host ID</th>
                                <th style="width:100px;">col 2</th>
                                <th style="width:100px;">col 3</th>
                                <th>col 4</th>
                                <th>col 5</th>
                                <th>col 6</th>
                                <th>col 7</th>
                                <th>col 8</th>
                                <th>col 9</th>
                            </thead>
                            <tbody></tbody>
                        </table>
                    </div>
                </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

最佳答案

Bootstrap 3.3.1 在 CSS 中有一个错误。 3.3.2 修复了这个问题。

关于html - 我的 Bootstrap 模式显示正常,但背景不会褪色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30403598/

相关文章:

html - 边框左右两侧有多余的空间,我该如何解决?

css - 我想在工具提示悬停时更改标题背景颜色

html - Bootstrap 导航栏不会在 iPhone 上折叠

javascript - Rails 表单输入字段充满了 Bootstrap 3 模式对话框

html - 如何水平对齐以前垂直对齐的照片?

javascript - Bootstrap Dropdown 动态 ajax 列表项

html - 动画宽度从自动到 100%?

python - 为什么不能将 Django 站点嵌入到另一个 HTML(iframe) 中?

html - 如何将框阴影添加到包含的 div?

css - 如何在IE 8 或更高版本中显示div 及其内容?