Bootstrap的js插件之警告框(alert.js)
来源:互联网 发布:炫动相机软件 编辑:程序博客网 时间:2024/04/28 17:38
data-dismiss="alert"——为关闭按钮添加该属性可以使其自动为警告框赋予关闭功能;
.fade .in——为警告框在关闭时添加动画效果;
更多细节参考示例:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width,initial-scale=1"> <title>js插件_警告框</title> <link rel="stylesheet" href="bootstrap.min.css" type="text/css"> <!--<link rel="stylesheet" href="//cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css">--> <script src="jquery-1.11.1.min.js"></script> <script src="bootstrap.min.js"></script></head><body><div class="container"> <h3>警告框示例</h3> <div class="alert alert-info alert-dismissible fade in" role="alert" id="myAlert"> <button type="button" class="close" data-dismiss="alert" aria-label="close"> <span aria-disabled="true">×</span> </button> 感谢您选择<strong><要投哪></strong> <button type="button" class="btn btn-primary">详情</button> </div></div><script>// $("#myAlert").alert('close');// $('#myAlert').on('closed.bs.alert',function(e){// alert("关闭了");// })</script></body></html>
0 0
- Bootstrap的js插件之警告框(alert.js)
- Bootstrap插件(六)——警告框(alert.js)
- 4.7Bootstrap学习js插件篇之警告框
- Bootstrap 警告框(Alert)插件
- Bootstrap JS插件Alert源码分析
- js插件之bootstrap
- Bootstrap学习总结笔记(20)-- 基本插件之Alert警告框
- Bootstrap的js插件之模态框(modal)
- Bootstrap的js插件之按钮(button)
- Bootstrap的js插件之弹出框(popover)
- js bootstrap 警告框的隐藏和显示
- js消息警告框插件
- bootstrap的js插件体验
- bootstrap支持的js插件
- bootstrap js插件篇——提示框、弹出框、警告框
- 让JS的Alert消息提示框失效禁止弹出网页警告框
- Bootstrap的js插件之滚动监听(scrollspy)
- Bootstrap的js插件之标签页(tab)
- 递归摘录
- HDOJ 2084 数塔(动规)(水)
- 1657: 求日龄
- C 编写求一个数组中最大值的函数
- 关于Maven dependency中外部jar包依赖的问题
- Bootstrap的js插件之警告框(alert.js)
- poj 1989 数学(求一个序列的最短非子序列长)
- Leetcode House Robber系列
- 黑马程序员——Java基础——命名规则、标识符、关键字和运算符
- muduo::Buffer分析
- 【GDOI】8.5~7三日总结
- android Caused by: java.lang.IllegalArgumentException: Binary XML file line #7: Must specify unique
- UITableView 表视图
- 跨域问题解决