modal框

创建modal款的基本“框架”:

 1 <body>
2 <!--1、触发模态框的按钮-->
3 <button class="btn btn-info" data-toggle="modal" data-target="#myModal">注册</button>
4 <!--2、定义模态框、平缓出现-->
5 <div class="modal fade" id="myModal" aria-labelledby="myModalLabel" aria-hedden="ture">
6 <!--3.定义对话框-->
7 <div class="modal-dialog">
8 <!--4.模态容器-->
9 <div class="modal-content">
10 <!--4.1、容器里的头部分-->
11 <div class="modal-header">
12 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
13 &times;
14 </button>
15 <h4 class="modal-title" id="myModalLabel">
16 请填写信息:
17 </h4>
18 </div>
19 <!--4.2、容器里的中间部分-->
20 <div class="modal-body">
21
22 </div>
23 <!--4.3、容器里的脚底部分-->
24 <div class="modal-footer">
25
26 </div>
27 </div>
28 </div>
29 </div>
30 </body>

分别向header、body、footer添加了信息:

 1 <body>
2 <!--1、触发模态框的按钮-->
3 <button class="btn btn-info" data-toggle="modal" data-target="#myModal">注册</button>
4 <!--2、定义模态框、平缓出现-->
5 <div class="modal fade" id="myModal" aria-labelledby="myModalLabel" aria-hedden="ture">
6 <!--3.定义对话框-->
7 <div class="modal-dialog">
8 <!--4.模态容器-->
9 <div class="modal-content">
10 <!--4.1、容器里的头部分-->
11 <div class="modal-header">
12 <button type="button" class="close" data-dismiss="modal" aria-hidden="true">
13 &times;
14 </button>
15 <h4 class="modal-title" id="myModalLabel">
16 请填写信息:
17 </h4>
18 </div>
19 <!--4.2、容器里的中间部分-->
20 <div class="modal-body">
21 <form action="" method="post">
22 <!--4.2.1输入组2-->
23 <div class="input-group">
24 <span class="input-group-addon">
25 <span class="glyphicon glyphicon-user"></span>
26 </span>
27 <input name="youName" class="form-control" placeholder="用户名/账号"/>
28 </div>
29 <br />
30 <!--4.2.1输入组2-->
31 <div class="input-group">
32 <span class="input-group-addon">
33 <span class="glyphicon glyphicon-eye-close"></span>
34 </span>
35 <input name="youPsw" class="form-control" placeholder="密码"/>
36 </div>
37 </form>
38 </div>
39 <!--4.3、容器里的脚底部分-->
40 <div class="modal-footer">
41 <button class="btn btn-success">登录</button>
42 <button class="btn btn-danger">取消</button>
43 </div>
44 </div>
45 </div>
46 </div>
47 </body>

modal框的更多相关文章

  1. Bootstrap Modal 框 alert confirm loading

    /** * Created by Administrator on 2016/5/4. */ /** * 模态窗口 */ window.Modal = { tpls:{ alert:'<div ...

  2. 富文本是在modal框中弹出显示的问题

    记录一下,在用tinymce富文本的时候,由于是用在modal 上的,始终无法获取焦点,后来才发现问题出在tinymce在modal前创建了,所以导致这个问题,解决方案就是用 v-if="v ...

  3. tinymce富文本是在modal框中弹出显示的问题

    记录一下,在用tinymce富文本的时候,由于是用在modal 上的,始终无法获取焦点,后来才发现问题出在tinymce在modal前创建了,所以导致这个问题,解决方案就是用 v-if="v ...

  4. Bootstrap里的Modal框

  5. 拥Bootstrap入怀——模态框(modal)篇

    置顶文章:<纯CSS打造银色MacBook Air(完整版)> 上一篇:<CSS绘制Android Robot> 作者主页:myvin 博主QQ:851399101(点击QQ和 ...

  6. bootstrap modal模态框的运用

    http://www.ziqiangxuetang.com/bootstrap/bootstrap-modal-plugin.html 方法 下面是一些可与 modal() 一起使用的有用的方法. 方 ...

  7. 【bootstrap】modal模态框的几种打开方法+问题集锦

    第一部分: 关于bootstrap中modal的使用,下面把几种自己用的打开方法展示出来 首先呢,得有个Bootstrap的页面,这里就不说了. 其次呢,得有个modal放在页面中,不管你这段代码加在 ...

  8. 在Bootstrap中得模态框(modal)中下拉不能显示得问题

    $.fn.modal.Constructor.prototype.enforceFocus = function () { $("#insertModal").on("s ...

  9. ant-design-vue中实现modal模态框的复用(添加,编辑展示同一个模态框)

    用两个button(添加,编辑)按钮展示同一个模态框,并不是什么大问题,问题在于解决这两个模态框得有自己的确定和取消方法 父页面完全接管子页面(利于子页面复用) 父页面代码: <template ...

随机推荐

  1. Mysql常用基础命令操作

    常见操作命令:1.连接Mysql (客户端工具NaviCat.phpMyAdmin.MySQL-Front)格式: mysql -h 主机地址 -u用户名 -p用户密码(1)连接到本机上的MYSQL. ...

  2. 【图像处理】使用SDL预览webp图片

    写在前面的话 WebP是Google开发的一种图像格式,支持图像数据的有损和无损压缩.保留动画和alpha透明通道数据. 可以创建和JPEG.PNG和GIF图像格式在质量相同或质量更高,但是数据更小的 ...

  3. 面试HashMap你都扛不住,还想拿到offer?

    当我们面试Java开发岗位时,面试官问的频率出现最多的问题,就是这个HashMap,不管是传统型公司还是互联公司,HashMap是必问的,所以作者爆肝整理了HashMap的23个问题以及答案,请查收! ...

  4. SpingBoot-Dubbo-Zookeeper-分布式

    目录 分布式理论 什么是分布式系统? Dubbo文档 单一应用架构 垂直应用架构 分布式服务架构 流动计算架构 什么是RPC RPC基本原理 测试环境搭建 Dubbo Dubbo环境搭建 Window ...

  5. Apache网页优化

    目录: 一.Apache网页优化概述 二.网页压缩 三.网页缓存 四.隐藏版本信息 五.Apache防盗链 一.Apache网页优化概述 在企业中,部署Apache后只采用默认的配置参数,会引发网站很 ...

  6. 记录一次sql注入绕过

    目标:http://www.xxxxx.net/temp.asp?ID=10359 通过 and 1=1 and 1=2 测试发现存在拦截 首先想到 and 空格 = 可能存在触发规则 一般遇到这种情 ...

  7. Brute Force暴力破解

    Low 服务器只是验证了参数Login是否被设置,没有任何的防爆破机制,且对参数username.password没有做任何过滤,存在明显的sql注入漏洞. 方法一:bp爆破 直接对爆破密码得到pas ...

  8. CodeForces - 764B Timofey and cubes(模拟)

    Young Timofey has a birthday today! He got kit of n cubes as a birthday present from his parents. Ev ...

  9. scrum项目冲刺_day10总结

    摘要:今日完成任务. 1.发布功能实现 2.导航还在进行 总任务: 一.appUI页面(已完成) 二.首页功能: 1.图像识别功能(已完成) 2.语音识别功能(已完成) 3.垃圾搜索功能(基本完成) ...

  10. css3 显示一行内容,多余的以省略号显示

    overflow: hidden; white-space: nowrap; text-overflow: ellipsis; 代码如上