Rumah > Artikel > hujung hadapan web > 用Bootstrap框架弹出iframe页面 在弹出的模态框中载人iframe页面_html/css_WEB-ITnose
<div class="modal fade" id="NoPermissionModal"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> ×--%> <button type="button" class="close" onclick="window.history.go(-1);">×</button> <h4 class="modal-title" id="NoPermissionModalLabel">系统消息</h4> </div> <div class="modal-body"> <iframe id="NoPermissioniframe" width="100%" height="50%" frameborder="0"></iframe> </div> <div class="modal-footer"> 关 闭 --%> <button class="btn btn-default" type="button" onclick="window.history.go(-1);"> 关 闭 </button> </div> </div> </div> </div> <input type="button" value="弹出模态框iframe" class="btn btn-primary" id="btnclick"><img src="http://img.blog.csdn.net/20140923180316546?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvY2hpbmFwbGFu/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast" alt="">
$(function(){ $("#btnclick").click(function(){ var frameSrc = "../ErrorPages/NoPermission.html"; $("#NoPermissioniframe").attr("src", frameSrc); $('#NoPermissionModal').modal({ show: true, backdrop: 'static' }); });});