BootStrap框架弹窗用Modal

2015-04-16 23:07:17长沙做网站严微

插入iframe框架

<button type="button" class="btn btn-default" data-toggle="modal" data-target="#addModal"><span class="glyphicon glyphicon-plus"></span> 新增</button>
<div class="modal fade" id="addModal" tabindex="-1" role="dialog" aria-hidden="true" style="top: 10px;">
  <div class="modal-dialog" style="width: 1200px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h4 class="modal-title" id="myModalLabel">新增</h4>
      </div>
      <div class="modal-body" style="height: 500px;">
        <iframe frameborder="0" src="userInfo_edit.html" scrolling="no" style="margin:0 auto;width:100%;height:100%;"></iframe>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>

直接在页面弹窗:

<a href="#" data-toggle="modal" data-target="#delModal">删除</a>

<div class="modal fade" id="delModal" tabindex="-1" role="dialog" aria-hidden="true" data-backdrop="static" data-keyboard="false" style="top: 100px;">
  <div class="modal-dialog" style="width: 400px;">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h4 class="modal-title" id="myModalLabel">删除</h4>
      </div>
      <div class="modal-body">
        您确定要删除吗?
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-primary">确定</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div>
  </div>
</div>

上一篇:

BootStrap 模态框禁用空白处点击关闭

下一篇:

网页布局有哪几种,有什么区别? 返 回

Copyright © 2009-2019 Ywcms.Com All Right Reserved.  湘ICP备16006489号-2