modal框
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 ×
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 ×
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框的更多相关文章
- Bootstrap Modal 框 alert confirm loading
/** * Created by Administrator on 2016/5/4. */ /** * 模态窗口 */ window.Modal = { tpls:{ alert:'<div ...
- 富文本是在modal框中弹出显示的问题
记录一下,在用tinymce富文本的时候,由于是用在modal 上的,始终无法获取焦点,后来才发现问题出在tinymce在modal前创建了,所以导致这个问题,解决方案就是用 v-if="v ...
- tinymce富文本是在modal框中弹出显示的问题
记录一下,在用tinymce富文本的时候,由于是用在modal 上的,始终无法获取焦点,后来才发现问题出在tinymce在modal前创建了,所以导致这个问题,解决方案就是用 v-if="v ...
- Bootstrap里的Modal框
- 拥Bootstrap入怀——模态框(modal)篇
置顶文章:<纯CSS打造银色MacBook Air(完整版)> 上一篇:<CSS绘制Android Robot> 作者主页:myvin 博主QQ:851399101(点击QQ和 ...
- bootstrap modal模态框的运用
http://www.ziqiangxuetang.com/bootstrap/bootstrap-modal-plugin.html 方法 下面是一些可与 modal() 一起使用的有用的方法. 方 ...
- 【bootstrap】modal模态框的几种打开方法+问题集锦
第一部分: 关于bootstrap中modal的使用,下面把几种自己用的打开方法展示出来 首先呢,得有个Bootstrap的页面,这里就不说了. 其次呢,得有个modal放在页面中,不管你这段代码加在 ...
- 在Bootstrap中得模态框(modal)中下拉不能显示得问题
$.fn.modal.Constructor.prototype.enforceFocus = function () { $("#insertModal").on("s ...
- ant-design-vue中实现modal模态框的复用(添加,编辑展示同一个模态框)
用两个button(添加,编辑)按钮展示同一个模态框,并不是什么大问题,问题在于解决这两个模态框得有自己的确定和取消方法 父页面完全接管子页面(利于子页面复用) 父页面代码: <template ...
随机推荐
- ORB_SLAM2 闭环检测段错误
问题描述: Ubuntu14.04运行正常.Ubuntu 16.04下运行时,检测到闭环后有时会段错误,定位发现断错误出现在CorrectLoop()的红色代码处 void LoopClosing:: ...
- vue-class和style样式绑定
前言 操作元素的 class 样式列表和 style 内联样式为数据绑定是前端开发中一个常见的需求,这些样式都属于元素的属性 attribute ,因此我们可以通过 v-bind 来动态绑定元素的样式 ...
- 集合框架3-Arrays 类
Arrays 和 Collections是分别操作数组和集合的两个工具类.今天就来对 Arrays 中的内容作个总结. 一.Arrays 类概述 Arrays 类位于 java.util包中.Arra ...
- Identity简单授权
详情访问官方文档 以下代码将访问权限限制为任何经过身份验证的用户,这里为控制器级 [Authorize] public class AccountController : Controller { p ...
- 在C#中使用RSA进行加密和解密
这篇文章向您展示了如何在c#.net Windows窗体应用程序中使用RSA算法对字符串进行加密和解密.RSA是由Ron Rivest,Adi Shamir和Leonard Adleman开发的非对称 ...
- Excel表格中单击一个单元格如何将整行整列变色
视图->阅读模式 开启阅读模式后 就会显示如下情景,是的你点击任意单元格后,显示整行/整列
- 修改 CubeMX 生成的 RT-Thread makefile 工程
修改 CubeMX 生成的 RT-Thread makefile 工程 使用 RT-Thread 官方 基于 CubeMX 移植 RT-Thread Nano 生成的 Makefile 工程在编译时有 ...
- 美团分布式定时调度框架XXL-Job基本使用
一:XXL JOB 基本使用 1.官方中文文档:https://www.xuxueli.com/xxl-job/ 2.基本环境: 2.1:git下载项目, 执行xxl-job数据库初始化脚本 2.2: ...
- 基于Docker构建企业Jenkins CI平台
- Redis Windows 服务启动异常 错误码1067
https://blog.csdn.net/after_you/article/details/62215163 Redis Windows 服务启动异常 错误码1067 下载了Redis 2.8.2 ...