插入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>
Copyright © 2009-2019 Ywcms.Com All Right Reserved. 湘ICP备16006489号-2