• bootstrap学习13-模态框插件


    <!DOCTYPE html>
    <html lang="zh-cn">
      <head>
        <meta charset="utf-8">
        <title>模态框插件</title>
        <link href="css/bootstrap.min.css" rel="stylesheet">
      </head>
      <body style="margin:50px;">
     <!--模态框声明   fade淡入淡出  tabindex="-1"取消焦点-->
      <div class="modal fade " id="myModal" tabindex="-1">
          <!--模态框窗口声明 窗口的大小    modal-lg modal-sm -->
          <div class="modal-dialog modal-sm">
          <div class="modal-content">
              <div class="modal-header">
                   <button class="close" data-dismiss="modal"><span>&times;</span></button>
                 <h4 class="modal-title">会员登录</h4>
              </div>
              <div class="modal-body">
                  <div class="container-fluid">
                      <div class="row">
                          <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">1</div>
                          <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">2</div>
                          <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">1</div>
                          <div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">2</div>
                      </div>
                  </div>
              </div>
              <div class="modal-footer">
                  <button class="btn btn-default">登录</button>
                  <button class="btn btn-primary">注册</button>
              </div>
          </div>
          </div>
      </div>
    
           <!--data-backdrop="static"背景存在黑灰透明遮罩,点击空白背景部分不可被关闭 
                            true背景存在黑灰透明遮罩,点击空白背景部分可被关闭 
                            false 背景不存在黑灰透明遮罩,点击空白背景部分不可被关闭 
             data-keyboard  true 按esc键关闭  false 按esc键不关闭
             data-show      true 默认显示   false 隐藏
             herf   可取代data-target方法-->
                           
                            
      <button class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal" href="content.html" data-backdrop=true>点击</button>
    
    
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
        <script src="js/jquery.min.js"></script>
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <script src="js/bootstrap.min.js"></script>
      </body>
    </html>
  • 相关阅读:
    window server2019+vmware16+Ubuntu20部署网站记录
    CentOS7源码安装MySQL
    CentOS7源码安装Python、virtualenv虚拟环境安装、uwsgi安装配置
    CentOS7 源码安装Nginx及Nginx基本管理设置
    Ubuntu 64位桌面版 16.04.1 设置桥接模式和固定静态IP方法
    Windows 下日志保存至Linux rsyslog日志服务器
    python 接参数的一个小坑
    历旧服务器配置注意事项
    gitlab设置邮件通知
    Linux基础篇之目录与文件
  • 原文地址:https://www.cnblogs.com/daniel-lij/p/6391209.html
Copyright © 2020-2023  润新知