实例首页
自学教程
IT工具箱
源代码
下载代码
上下布局
点击运行 >
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Bootstrap 实例 - 表格</title> <!-- Bootstrap --> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"> </head> <body> <div class="table-responsive"> <table class="table"> <caption>响应式表格布局</caption> <thead> <tr> <th>产品</th> <th>付款日期</th> <th>状态</th> </tr> </thead> <tbody> <tr> <td>产品1</td> <td>2021-05-01</td> <td>待发货</td> </tr> <tr> <td>产品2</td> <td>2021-05-02</td> <td>发货中</td> </tr> <tr> <td>产品3</td> <td>2021-05-03</td> <td>待确认</td> </tr> <tr> <td>产品4</td> <td>2021-05-04</td> <td>已退货</td> </tr> </tbody> </table> </div> <script src="https://code.jquery.com/jquery-1.12.4.min.js"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script> </body> </html>
运行结果: