bootstrap模拟弹出页面的demo
1、引入bootstrap相应的js,以及jquery;使用外部引入;<head> <meta charset="utf-8"> <title>Bootstrap 实例弹出页面实例</title> <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://cdn.bootcss.com/jquery/2.1.1/jquery.min.js"></script> <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script></head>

3、<div class="modal-content"><div class="modal-header"><button id="modelClose" type="button" class="close" data-dismiss="modal"aria-hidden="true">×</button><h4 class="modal-title" id="myModalLabel">模态框(Modal)标题</h4></div><div class="modal-body">按下 ESC 按钮退出。</div>

5、<script> $(function(){ $('#model').click(function(){ $("#modelClose").click(); $("#img").append("<div style='height: 100px;width: 100px; background-color: #aaa;'><img src='img/timg.gif' style='height: 100px;width: 100px;'></div>") }) }) </script>

7、记录方法,仅供参考;
