我的bootstrap有问题, 我用这些代码行包含了我的模态(我使用Jade):
<button data-toggle="modal" href="#myModal" class="btn btn-primary">Launch demo modal</button>
<div id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" class="modal fade">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" data-dismiss="modal" class="close"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 id="myModalLabel" class="modal-title">Modal title</h4>
</div>
<div class="modal-body">...</div>
<div class="modal-footer">
<button type="button" data-dismiss="modal" class="btn btn-default">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
当我点击按钮时,它会打开模态,但是当我关闭模态时,它只是关闭模态并保留叠加!我真的不明白为什么会这样......
这些是关闭模式之前和之后的屏幕截图:
BEFORE: http://i.stack.imgur.com/UkcSe.jpg
AFTER: http://i.stack.imgur.com/1Uovr.jpg
根据你的问题是什么?
ps:不要碰到后面,它仍然不能很好地运作:p