Bootstrap 背景色类
Bootstrap 背景色类使您能够更改表格行或单个 单元的背景色。
以下为各类的说明 −
| 类 | 说明 |
|---|---|
| .active | 将悬停颜色应用到某一行或单元格 |
| .success | 表示成功或积极操作 |
| .warning | 表示警告,可能需要引起注意 |
| .danger | 表示危险或潜在的负面操作 |
示例
以下是 active 类的示例 −
示例
<!DOCTYPE html> <html> <head> <title>Bootstrap Table</title> <link href = "/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <table class = "table"> <thead> <tr> <th>Subject</th> <th>Marks</th> <th>Student</th> </tr> </thead> <tbody> <tr class = "active"> <td>Maths</td> <td>90</td> <td>Amit</td> </tr> <tr> <td>Science</td> <td>80</td> <td>Aman</td> </tr> <tr> <td>English</td> <td>85</td> <td>Rahul</td> </tr> </tbody> </table> </body> </html>
广告位
数据结构
网络
关系型数据库管理系统
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP