Twitter Bootstrap模式在IE7中不起作用

Ash*_*ghi 3 modal-dialog twitter-bootstrap

<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>
Run Code Online (Sandbox Code Playgroud)

将在按钮单击时调用的模态代码

$('#modalId').modal({
    backdrop: 'static',
    keyboard: false,
    show: true
});
Run Code Online (Sandbox Code Playgroud)

这里我遇到的问题是,在模态弹出窗口中出现黑色窗口.

这在firefox,IE 8中完美运行,但在IE7中没有.

我尝试了很多,但在这里找不到问题.:(可以请一些人看看.thubjsdaps14

Ash*_*ghi 11

我在bootstrap.js中注释了以下行

appendTo(document.body)

并补充说

.insertAfter(this.$element)

有关更多详细信息,请参阅https://github.com/twitter/bootstrap/issues/3217

现在它在IE7中正常运行.