Ajax Bootstrap 3.2.0模式和远程内容不可见关闭按钮

Ajax Bootstrap 3.2.0模式和远程内容不可见关闭按钮,ajax,twitter-bootstrap,twitter-bootstrap-3,modal-dialog,Ajax,Twitter Bootstrap,Twitter Bootstrap 3,Modal Dialog,我使用Bootstrap3.2.0模式对话框来显示遥控器的内容,只有内容完全填满了模式窗口,并且标题中的关闭按钮不可见 这是我的代码: <a href="#" data-remote="<?php echo dynamic url ?> #fragment" data-toggle="modal" data-target="#myModal"></a> <div id="myModal" class="modal fade"> &

我使用Bootstrap3.2.0模式对话框来显示遥控器的内容,只有内容完全填满了模式窗口,并且标题中的关闭按钮不可见

这是我的代码:

  <a  href="#" data-remote="<?php echo dynamic url ?> #fragment" data-toggle="modal"     data-target="#myModal"></a>
 <div id="myModal" class="modal fade">
 <div class="modal-dialog">
    <div class="modal-content">

            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title">Event</h4>
            </div>
            <div class="modal-body">
                <p>Loading...</p>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
                <button type="submit" class="btn btn-primary">Save changes</button>
            </div>

    </div>
    <!-- /.modal-content -->
</div>
<!-- /.modal-dialog -->
我把你的代码粘贴进去


所以它没有任何问题。我认为
data remote=“
has error=>modal”中的这个页面无法加载所有然后按钮关闭,并且modal footer还没有加载。

这应该可以工作。它在任何地方联机吗?我会检查你的css(使用开发工具)要确定模式页眉是否被隐藏或设置为显示:无。我没有对模式使用任何css。我忘了提到模式页脚也不可见。您没有正确理解。用于远程捕获ID为#片段的容器内容的模式。
  $('body').on('hidden.bs.modal','.modal',function(){ $(this).removeData('bs.modal');});