Bootstrap 活跃类上下文
Bootstrap 活跃上下文类将鼠标悬停颜色应用到特定行或单元格。你可以尝试运行以下代码来实现活跃上下文类
示例
<!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> <td>Maths</td> <td>90</td> <td>Amit</td> </tr> <tr class = "active"> <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>
广告