bootstrap,tableBootstrap table表格简单实例分享给大家,供大家参考,具体内容如下 使用类 Class="table" 既可让table美化样式 table 相关的Class 隔行换色 : table-striped 鼠标悬停效果: table-hover 表格的边框:table-bordered 表头颜色:class="danger" Success 等几种颜色 1.页面添加引用 <script src="../Bootstrap/jquery-3.1.1.js"></script> <script src="../Bootstrap/js/bootstrap.min.js"></script> <link href="../Bootstrap/css/bootstrap.min.css" rel="external nofollow" rel="stylesheet" /> 2. 代码实现 <table class="table table-striped table-hover table-bordered"> <thead> <tr class="danger"> <%--表头颜色--%> <td>姓名</td> <td>年龄</td> <td>性别</td> </tr> </thead> <tbody> <tr> <td>张三</td> <td>20</td> <td>男</td> </tr> </tbody> </table> 3.页面效果 
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持wanshiok.com。 bootstrap,table
|