<button class="btn" onClick="$('#firstModal').modal('show');">First</button>
<!-- Modal -->
<div id="firstModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-body">
<button class="btn" onClick="$('#secondModal').modal('show');">Second</button>
</div>
</div>
<!-- Modal -->
<div id="secondModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-body">
Some error message goes here.
</div>
</div>
一切工作正常;唯一的问题是第一个对话框显示在第二个对话框的叠加层上。我怎样才能解决这个问题?引导模式对话框可以覆盖另一个对话框吗?
一个简单的实现它:HTTP://sforsuresh.in/bootstrap-modal-window-close - 当前打开的新模式/ – 2018-03-06 11:38:17