jQuery 数据表中的复杂 Header
Complex Header in jQuery DataTable
如何在 jQuery DataTable 中创建类似 header 的内容?
是的,查看选项卡(主要是 html 选项卡):https://www.datatables.net/examples/basic_init/complex_header.html
适用于您的情况,http://jsfiddle.net/t4tzwm6c/
(这真的只是 html rowspan 和 colspan 的问题)
片段:
<table>
<thead>
<tr>
<th rowspan="2">Operation conducted</th>
<th colspan="3">Drug evidence seized</th>
</tr>
<tr>
<th>Shabu</th>
<th>Majijuana</th>
<th>Others</th>
</tr>
</thead>
如何在 jQuery DataTable 中创建类似 header 的内容?
是的,查看选项卡(主要是 html 选项卡):https://www.datatables.net/examples/basic_init/complex_header.html
适用于您的情况,http://jsfiddle.net/t4tzwm6c/ (这真的只是 html rowspan 和 colspan 的问题)
片段:
<table>
<thead>
<tr>
<th rowspan="2">Operation conducted</th>
<th colspan="3">Drug evidence seized</th>
</tr>
<tr>
<th>Shabu</th>
<th>Majijuana</th>
<th>Others</th>
</tr>
</thead>