通过 Bootstrap 应用悬浮颜色到特定的表格行或单元格
要通过 Bootstrap 应用悬浮颜色到特定的表格行或单元格,请使用 .active 类。你可以尝试运行以下代码来实现 .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> <div class = "table-responsive"> <table class = "table"> <thead> <tr> <th>Subject</th> <th>Marks</th> <th>Type</th> </tr> </thead> <tbody> <tr class = "active"> <td>C++</td> <td>70</td> <td>Programming Language</td> </tr> <tr> <td>PHP</td> <td>92</td> <td>Scripting Language</td> </tr> <tr> <td>jQuery</td> <td>80</td> <td>JavaScript Library</td> </tr> </tbody> </table> </div> </body> </html>
广告
数据结构
网络
RDBMS
操作系统
Java
iOS
HTML
CSS
Android
Python
C 编程
C++
C#
MongoDB
MySQL
Javascript
PHP