bootstrap模态框
来源:互联网 发布:三菱plc编程数据线 编辑:程序博客网 时间:2024/05/18 03:13
1.模态框的使用
2.模态框的页面跳转
一般方式直接写入模态框
点击模态框弹出新页面的方式
<a href="abc.html" class="btn-tip mr pull-left" title="打开模态框" data-toggle="modal"data-target=".bs-example-modal-lg">
</a>
<div class="modal fade bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel">
</div>
3.模态框关闭
Bootstrap 模态框在用户点击背景空白处时,不关闭
方法一:在HTML页面中编写模态框时,在div初始化时添加属性 aria-hidden=”true” data-backdrop=”static”,即可
方法二:在需要显示模态框,初始化时,$(‘#myModal’).modal({backdrop: ‘static’, keyboard: false});
其中 ,backdrop:’static’指的是点击背景空白处不被关闭; keyboard:false指的是触发键盘esc事件时不关闭。
阅读全文
0 0
- bootstrap--模态框
- bootstrap 模态框
- BootStrap模态框
- bootstrap模态框
- bootstrap模态框
- BootStrap 模态框
- Bootstrap 模态框
- Bootstrap模态框
- bootstrap模态框
- Bootstrap模态框
- BootStrap模态框
- bootstrap模态框
- bootstrap模态框
- Bootstrap模态框
- Bootstrap模态框
- bootstrap模态框
- bootstrap模态框
- bootstrap模态框
- 树莓派到手第一步:上电启动、安装中文字体、虚拟键盘、开启SSH等
- change from now!
- DrawingManager.js 源码详解(转载)___百度地图API
- PyQt 界面控件常用积累(转载)
- linux java环境安装
- bootstrap模态框
- OpenCV2编程手册笔记之 8.3检测FAST特征
- Python UnicodeEncodeError: 'gbk' codec can't encode character 解决方法
- 自定义实现指示线的左右滑动(长度为屏幕上标题个数的一半)
- 欢迎使用CSDN-markdown编辑器
- bzoj3698: XWW的难题 //有上下界有源汇最大流
- JPA(Java Persistence API,Java持久化API)
- 如何为运行的 ARM Linux 启用 LAD2.3 版本的诊断扩展
- 合并TOMCAT报错