bootstrap3的.tabel .danger
2013-11-25 18:32
330 查看
2.3版本的 3.0版本
通过这些状态class可以为行货单元格设置颜色。
实验代码:
[html]
view plaincopy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="dist/css/bootstrap.css">
<script type="text/javascript" src="dist/js/jquery.js"></script>
<script type="text/javascript" src="dist/js/bootstrap.js"></script>
<title>无标题文档</title>
</head>
<body style="margin:200px">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>标题1</th>
<th>标题2</th>
<th>标题3</th>
</tr>
</thead>
<tbody>
<tr class="active">
<td>1</td>
<td>这个是active的效果</td>
<td>这个是active的效果</td>
<td>这个是active的效果</td>
</tr>
<tr>
<td>2</td>
<td>内容栏</td>
<td>内容栏</td>
<td>内容栏</td>
</tr>
<tr class="success">
<td>3</td>
<td>这个是success的效果</td>
<td>这个是success的效果</td>
<td>这个是success的效果</td>
</tr>
<tr>
<td>4</td>
<td>内容栏</td>
<td>内容栏</td>
<td>内容栏</td>
</tr>
<tr class="warning">
<td>5</td>
<td>这个是warning的效果</td>
<td>这个是warning的效果</td>
<td>这个是warning的效果</td>
</tr>
<tr>
<td>6</td>
<td>内容栏</td>
<td>内容栏</td>
<td>内容栏</td>
</tr>
<tr class="danger">
<td>7</td>
<td>这个是danger的效果</td>
<td>这个是danger的效果</td>
<td>这个是danger的效果</td>
</tr>
</tbody>
</table>
</body>
</html>
效果图:
.table .error | .table .danger |
Class | 描述 |
---|---|
.active | 鼠标悬停在行或单元格上时所设置的颜色 |
.success | 标识成功或积极的动作 |
.warning | 标识警告或需要用户注意 |
.danger | 标识危险或潜在的带来负面影响的动作 |
[html]
view plaincopy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="dist/css/bootstrap.css">
<script type="text/javascript" src="dist/js/jquery.js"></script>
<script type="text/javascript" src="dist/js/bootstrap.js"></script>
<title>无标题文档</title>
</head>
<body style="margin:200px">
<table class="table">
<thead>
<tr>
<th>#</th>
<th>标题1</th>
<th>标题2</th>
<th>标题3</th>
</tr>
</thead>
<tbody>
<tr class="active">
<td>1</td>
<td>这个是active的效果</td>
<td>这个是active的效果</td>
<td>这个是active的效果</td>
</tr>
<tr>
<td>2</td>
<td>内容栏</td>
<td>内容栏</td>
<td>内容栏</td>
</tr>
<tr class="success">
<td>3</td>
<td>这个是success的效果</td>
<td>这个是success的效果</td>
<td>这个是success的效果</td>
</tr>
<tr>
<td>4</td>
<td>内容栏</td>
<td>内容栏</td>
<td>内容栏</td>
</tr>
<tr class="warning">
<td>5</td>
<td>这个是warning的效果</td>
<td>这个是warning的效果</td>
<td>这个是warning的效果</td>
</tr>
<tr>
<td>6</td>
<td>内容栏</td>
<td>内容栏</td>
<td>内容栏</td>
</tr>
<tr class="danger">
<td>7</td>
<td>这个是danger的效果</td>
<td>这个是danger的效果</td>
<td>这个是danger的效果</td>
</tr>
</tbody>
</table>
</body>
</html>
效果图:
相关文章推荐
- bootstrap3的.tabel .danger
- bootstrap的text-muted和text-danger
- Bootstrap学习------Tabel
- bootstrap3的alert-danger
- bootstrap3的alert-danger
- Bootstrap3基础 bg-danger/info... 辅助类样式 背景文本颜色
- bootstrap的text-muted和text-danger
- bootstrap-wysiwyg 结合 base64 解码 .net bbs 图片操作类 (二) 图片裁剪
- BootStrap的Datepicker控件使用心得分享
- bootstrap与jqueryui按钮冲突的解…
- Bootstrap-导航
- BootStrap入门教程 (四)
- 使用Bootstrap组件【下篇】
- Bootstrap标签页(Tab)插件使用方法
- 深入理解BootStrap-- 栅格系统
- bootstrap modal 一闪
- bootstrap 中 css 与 javascript 的使用
- Bootstrap 提示工具(Tooltip)插件
- Bootstrap 教程
- UiAutomator系列——Appium Android Bootstrap源码分析之启动运行(009)