gpt4 book ai didi

twitter-bootstrap - Twitter Bootstrap 模式在 IE7 中不起作用

转载 作者:行者123 更新时间:2023-12-03 00:10:00 27 4
gpt4 key购买 nike

<div class="modal hide" id="modalId">
<div class="modal-header" style="padding:30px 10px">
<h3 style="float:left">Some text here</h3>
<input type="image" src="image_path" alt="loading..." class="pull-right" />
</div>
<div class="modal-body" style="clear:both">
<!-- I have a table here-->
</div>
<div class="modal-footer">
<!-- I have a button here -->
</div>
</div>

点击按钮时调用的模式代码

$('#modalId').modal({
backdrop: 'static',
keyboard: false,
show: true
});

这里我面临的问题是,在模态弹出的形式中出现一个黑色窗口。

这在 Firefox、IE 8 中完美运行,但在 IE7 中不起作用。

我尝试了很多,但找不到这里的问题。 :(有人可以看一下吗? thubjsdaps14

最佳答案

我在 bootstrap.js 中评论了以下行

appendTo(document.body)

并添加

.insertAfter(this.$element)

更多详情请参阅https://github.com/twitter/bootstrap/issues/3217

现在可以在IE7中正常工作了。

关于twitter-bootstrap - Twitter Bootstrap 模式在 IE7 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11468514/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com