主要是通过jquery的方式获取到每个单元格,然后写css方法:table.dataTable, .table>tbody>tr>td, .table>thead:first-child>tr:first-child>th{ border:solid 1px ; }