abstract:1.引入jQuery.min.js;2.引入bootstrap-modal.js;3.操作按钮:<a href="#edit" data-toggle="modal">修改</a>4.模态框<div class="modal fade" id="ed
1.引入jQuery.min.js;
2.引入bootstrap-modal.js;
3.操作按钮:
<a href="#edit" data-toggle="modal">修改</a>
4.模态框
<div class="modal fade" id="edit"> <div class="modal-dialog "> <div class="modal-content"> <div class="modal-header"> <h3 class="modal-title">头标题</h3> <a class="close" data-dismiss="modal"> <span>关闭</span> </a> </div> <div class="modal-body"> 内容 </div> <div class="modal-footer"> <!--脚--> <a class="btn btn-default " data-dismiss="modal">关闭</a> </div> </div> </div> </div>
更多关于BootStrap3中模态对话框的使用请关注PHP中文网(m.sbmmt.com)其他文章!