您好,欢迎访问一九零五行业门户网

引导上下文类

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>
以上就是引导上下文类的详细内容。
其它类似信息

推荐信息