wsxiot的博客

IT民工搬砖记录

bootstrap模态框的简单使用demo

<!DOCTYPE html>
<html lang="zh-cn">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>bootstrap模态框demo</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.0/css/bootstrap.min.css">

  </head>
  <body>
    <h2>创建模态框(Modal)</h2>
<!-- 按钮触发模态框 -->
<button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#register">
    开始演示模态框
</button>

<div class="modal fade in"   id="register" >
                <div class="modal-dialog modal-lg">
              <div class="modal-content">
                <div class="modal-header">
                    <button class="close" data-dismiss="modal">&times;</button>
                    <h3 class="modal-title">标题</h3>
                </div>
                <div class="modal-body">
                    <p>正文</p>
                </div>
                <div class="modal-footer">
                    <button class="btn btn-info" data-dismiss="modal">关闭</button>
                </div>
              </div>
            </div>
          </div>


    <script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
    <script src="http://cdn.bootcss.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
  </body>
</html>
阅读更多
版权声明:如有侵权,请联系,如有错误,望指正,欢迎转载 https://blog.csdn.net/qq_29630271/article/details/52557510
上一篇java IO流的全面解析
下一篇c++多态特性的小小总结
想对作者说点什么? 我来说一句

jSignature

2017年11月16日 126KB 下载

没有更多推荐了,返回首页

关闭
关闭