模态不在IE中打开 [英] Modal not opening in IE
本文介绍了模态不在IE中打开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试弹出模式,其中包含有关地图上某些地方的信息。以下是代码:
I'm trying to make modals pop up with info about certain places on a map. Here is the code:
<area href="#modal_starthere" data-toggle="modal" title="Start Here" shape="poly" coords="431, 785, 500, 785, 501, 839, 432, 838" />
然后是:
<div id="modal_starthere" 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>
<h4>Start Tour Here</h4>
</div>
<div class="modal-body">
<div class="row-fluid">
<div class="span12" style="overflow: auto; height: 425px;">
<p> <!-- FUTURE CONTENT --></p>
</div>
</div>
</div>
</div>
它在Firefox和Chrome中运行良好,但在IE(10)中,背景变灰但是模态不显示。有任何想法吗?我想知道IE中是否支持数据切换。
It works great in Firefox and Chrome, but in IE (10) the background goes grey but the modal does not display. Any ideas? I wonder if maybe data-toggle isn't supported in IE.
推荐答案
IE不支持模态的淡入淡出类通过取出淡入淡出我失去了动画,但现在所有3个浏览器中的模态显示。我在这里找到答案: https://github.com/twitter/bootstrap/issues/3672
IE does not support the "fade" class for modals, by taking out fade i lost the animation, but the modal displays in all 3 browsers now. I found the answer here: https://github.com/twitter/bootstrap/issues/3672
这篇关于模态不在IE中打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文