首页
极刻
圈子
教程
开源
登录 / 注册
返回教程:Bootstrap 教程
TRY RUN / 在线示例
Bootstrap 教程 尝试一下
Bootstrap 教程 尝试一下
源代码
运行
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://apps.bdimg.com/libs/bootstrap/3.3.0/css/bootstrap.min.css"> </head> <body> <div class="container"> <h2>表格</h2> <p> .active 类将悬停的颜色应用在行或者单元格上:</p> <table class="table"> <thead> <tr> <th>#</th> <th>Firstname</th> </tr> </thead> <tbody> <tr class="active"> <td>1</td> <td>Anna</td> </tr> <tr> <td>2</td> <td>Debbie</td> </tr> <tr> <td>3</td> <td>John</td> </tr> </tbody> </table> </div> <script src="//apps.bdimg.com/libs/jquery/2.1.1/jquery.min.js"></script> <script src="//apps.bdimg.com/libs/bootstrap/3.3.0/js/bootstrap.min.js"></script> </body> </html>
运行结果