bootstrap下使用modal.js调用URL问题

木易君 发布于 2016/08/26 16:56
阅读 736
收藏 0
<a data-toggle="modal" href="http://www.qiija.com/" data-target="#modal" data-remote="true">Click me</a>

<!-- 模态框(Modal) -->
<div class="modal fade" id="modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Modal title</h4>
      </div>
      <div class="modal-body">
        ...
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

想在模态框里显示外部页面,但始终不成功,不知道什么地方出错!

求高人指点!

加载中
返回顶部
顶部