任何想法,为什么我的背景在这个模态出现时不会消失?
<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">×</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 -->
答案 0 :(得分:1)
Bootstrap 3.3.1在CSS中有一个错误。 3.3.2修复了这个问题。
答案 1 :(得分:0)
您的模型在此 Fiddle. 中正常运行 尝试将CSS Bootstrap链接放在最后......位于任何自定义CSS链接下方 要查看它是否是自定义CSS文件,请为您创建此问题。
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css">