Bootstrap 表格制作
来源:互联网 发布:乡村教育现状数据 编辑:程序博客网 时间:2024/05/06 21:46
Bootstrap 支持的一些表格元素:
可用于表格中的tablede 样式
可用于表格中的<tr>, <th> 和 <td>
html与css代码
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.min.css"> <style> div{ font-family: '宋体'; color: #0A0A0A; } tr,td{ width:30px; height: 50px; font-size:24px; } </style> </head> <body> <div class="container"> <div class="header"><h1>表格</h1> </div> <p class="text-muted" style="font-size: 18px;">小妞妞的成绩单:</p> <!-- <p class="text-muted">本行内容是减弱的</p> --> <table class="table table-striped table-bordered table-hover table-condensed"> <!-- .table-striped在 <tbody> 内添加斑马线形式的条纹 ( IE8 不支持) .table-bordered为所有表格的单元格添加边框 .table-hover在 <tbody> 内的任一行启用鼠标悬停状态 .table-condensed让表格更加紧凑 --> <thead> <tr class="active"> <th>科目</th> <th>成绩</th> </tr> </thead> <tbody> <tr class="success"> <td>语文</td> <td>90</td> </tr> <tr> <td>数学</td> <td>95</td> </tr> <tr class="warning"> <td>英语</td> <td>85</td> </tr> <tr class="danger"> <!-- .active 对某一特定的行或单元格应用悬停颜色;.success表示一个成功的或积极的动作; .warning 表示一个需要注意的警告;.danger表示一个危险的或潜在的负面动作; --> <td>综合</td> <td>200</td> </tr> </tbody> </table> </div> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> </body></html
效果图
2 0
- Bootstrap 表格制作
- bootstrap--表格制作
- Bootstrap—轻松制作漂亮表格(table)
- Bootstrap—轻松制作漂亮表格(table)
- Bootstrap 表格
- Bootstrap 表格
- Bootstrap 表格
- BootStrap表格
- Bootstrap 表格
- Bootstrap 表格
- Bootstrap 表格
- bootstrap表格
- Bootstrap表格
- bootstrap表格
- bootstrap表格
- Bootstrap 表格
- Bootstrap<表格>
- Bootstrap-表格
- js中类型判断
- 神经网络的一些matble代码
- hibernate一级缓存和二级缓存的区别
- 282. Expression Add Operators
- layui设置radio
- Bootstrap 表格制作
- UML简单入门
- MemCache超详细解读
- error connecting to master,- retry-time: 60 retries: 86400【已解】
- 解决cocos2d-js集成到ios原生应用中退出游戏,再加载游戏时会奔溃的问题
- DDR地址和容量计算
- mysql on duplicate key update
- C语言编程之——倒序的三位数
- 进程、线程总结