bootstrap 警告
本章将讲解警告(Alerts)以及Bootstrap所提供的用于警告的class.警告(Alerts)向用户提供了一种定义消息样式的方式。它们为典型的用户操作提供了上下文信息反馈。
您可以为警告框添加一个可选的关闭按钮。为了创建一个内联的可取消的警告框。请使用警告(Alerts)Jquery插件。
你可以通过创建一个div并向其添加一个.alert class 和四个上下文class (即.alert-success,alert-info,alert-warning,alert-danger)之一,来添加一个基本的警告框。下面的实例演示了这点:
<div class="alert alert-success">成功!很好地完成了提交。</div>
<div class="alert alert-info">成功!很好地完成了提交。</div>
<div class="alert alert-warning">成功!很好地完成了提交。</div>
<div class="alert alert-danger">成功!很好地完成了提交。</div>
可取消的警告(Dismissal Alerts)
创建一个可取消的警告步骤台下:
通过创建一个div并向其中添加一个.alert class 和四个上下文class(即alert-success,alert-info,alert-warning,alert-danger)之一,来添加一个基本的警告框。
同时几上面的div class添加可选的alert-dismissable
添加一个关闭按钮。
下面的实例说明了这一点:
<div>
<div class="alert alert-success alert-dismissable">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×
</button>
成功!很好的完成了提交.
</div>
<div class="alert alert-info"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×
</button>
信息!请注意这个信息.
</div>
<div class="alert alert-warning">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×
</button>
警告!请不要提交.
</div>
<div class="alert alert-danger"> <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
×
</button>
错误!请进行一些更改.</div>
</div>
警告中的链接
在警告(Alerts)中创建链接的步骤如下:
通过创建一个div,并向其中添加一个alert class和四个上下文 即alert-success,alert-info,alert-warning,alert-danger 之一,来添加一个基本的警告框。
使用.alert-link实体类来快速提供带匹配颜色的链接。
<div>
<div class="alert alert-success alert-dismissable">
<a href="#" class="alert-link">成功!很好的完成了提交.</a>
</div>
<div class="alert alert-info">
<a href="#" class="alert-link">信息!请注意这个信息.</a>
</div>
<div class="alert alert-warning">
<a href="#" class="alert-link">警告!请不要提交.</a>
</div>
<a class="alert alert-danger"><a href="#" class="alert-link">错误!请进行一些更改.</a>
</div>
bootstrap 警告的更多相关文章
- Bootstrap警告框
前面的话 在网站中,网页总是需要和用户一起做沟通与交流.特别是当用户操作上下文为用户提供一些有效的警示框,比如说告诉用户操作成功.操作错误.提示或者警告等.在Bootstrap框架有一个独立的组件,实 ...
- bootstrap 警告框多个删除
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>& ...
- bootstrap 警告框单个删除
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title>& ...
- Bootstrap 警告框(Alert)插件
警告消息大多来是用来向终端用户提示警告或确认的消息,使用警告框插件,您可以向所有的警告框消息添加取消功能. 用法 您有以下两种方式启用警告框的可取消功能. 1.通过data属性:通过数据添加可取消功能 ...
- bootstrap 警告(Alerts)
本章将讲解警告(Alerts)以及bootstrap所提供的用于警告的class类.警告(Alerts)向用户提供了一种定义消息样式的方式.它们为典型的用户操作提供了上下文信息反馈. 您可以为警告框添 ...
- bootstrap警告框、进度条和列表组
警告框 <div class="container"> <div class="alert alert-success" rol ...
- Bootstrap警告
警告(Alerts)向用户提供了一种定义消息样式的方式.它们为典型的用户操作提供了上下文信息反馈. 警告(Alerts) 步骤: 1.创建一个 <div> 2.并向其加入一个 .alert ...
- Bootstrap 警告框(Alert)插件
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title> ...
- Bootstrap 警告、进度条、列表组、面板
摘要:该部分包括警告.进度条.列表组.面板等部分. 1.警告(alert) 1.1 基本的警告(.alert) 警告的基类是 .alert .和其他样式类一块使用.例如: .alert-success ...
随机推荐
- Codeforces 449D Jzzhu and Numbers(高维前缀和)
[题目链接] http://codeforces.com/problemset/problem/449/D [题目大意] 给出一些数字,问其选出一些数字作or为0的方案数有多少 [题解] 题目等价于给 ...
- 【置换群】【枚举约数】hdu6038 Function
把b数组的所有置换群求出来,用数组记录一下每个大小所出现的次数. 然后求a的置换群,对每个置换群求能被其整除的b的置换群的大小总和(只有这些才能满足构造出一个f,且不自相矛盾),然后把它们全都乘起来就 ...
- JDK源码学习笔记——Object
一.源码解析 public class Object { /** * 一个本地方法,具体是用C(C++)在DLL中实现的,然后通过JNI调用 */ private static native void ...
- vm克隆linux系统 后连接网络
第一步 vi /etc/udev/rules.d/70-persistent-net.rules 将之前的eth0注释掉, 将eth1改为eth0 并复制mac地址 第二部 vi /et ...
- [转]SpringMVC拦截器详解[附带源码分析]
目录 前言 重要接口及类介绍 源码分析 拦截器的配置 编写自定义的拦截器 总结 前言 SpringMVC是目前主流的Web MVC框架之一. 如果有同学对它不熟悉,那么请参考它的入门blog:ht ...
- nand flash坏块管理OOB,BBT,ECC
转:http://www.cnblogs.com/elect-fans/archive/2012/05/14/2500643.html 0.NAND的操作管理方式 NAND FLASH的管理方式:以三 ...
- Luci实现框架
转自:http://www.cnblogs.com/zmkeil/archive/2013/05/14/3078774.html 1.总述 上一篇总结了uhttpd的工作方式,openwrt中利用它作 ...
- java 中PriorityQueue优先级队列使用方法
1.前言 优先级队列是不同于先进先出队列的另一种队列.每次从队列中取出的是具有最高优先权的元素. PriorityQueue是从JDK1.5开始提供的新的数据结构接口. 如果想实现按照自己的意愿进行优 ...
- python 将编码转为汉字
print '\u57fa\u7840\u5316\u5de5\u4e1a'.decode('unicode-escape') print urllib.unquote("%C0%FA%CA ...
- 将EC2的Sql Server 计划任务的方式备份到s3上
编写个powershell脚本 $server = '.' $database = 'databaseName' $s3Bucket = 's3bucket' $backupPath = 'D:\Ba ...