0
我正在使用bootstrap 3模式。无法在加载iframe作为内容时关闭bootstrap3模式
以下是我的代码。
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Modal header</h3>
</div>
<div class="modal-body">
<iframe src="remote.html"></iframe>
</div>
<div class="modal-footer">
<a href="#" class="btn">Close</a>
<a href="#" class="btn btn-primary">Save changes</a>
</div>
</div>
现在的每一件事就像它应该除了当模式被触发我无法隐藏模式(甚至关闭按钮)。
Howwever when we use the modal without iframe the modal functions perfect。
这一直在吃我的时间有一段时间,如果有人能帮我弄清楚这一点,这将是非常棒的。