答案 0 :(得分:0)
如果要显示标题,可以添加数据标题属性。
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<table id="myTable" class="table table-bordered table-hover">
<thead>
<tr>
<td>CUSTOMER</td>
<td>PO QUANTITY</td>
<td>DATE OF DELIVERY</td>
<td>STOCKS</td>
</tr>
</thead>
<tbody>
<tr>
<td>CUSTOMER 1</td>
<td>2000 PCS</td>
<td>2017/06/15</td>
<td>5000 PCS</td>
</tr>
<tr>
<td>CUSTOMER 2</td>
<td>500 PCS</td>
<td>2017/06/15</td>
<td>500 PCS</td>
</tr>
</tbody>
</table>