我有臺這樣的數據表列跨度頭
<table id="tbl_orderstatus" class="dataTable table table-bordered table-hover table-full-width nowrap" width="150%" data-table="tblorderstatus">
<thead>
<tr>
<th>Buyer</th>
<th>Season</th>
<th>Style#</th>
<th>KP#</th>
<th>Item Description</th>
<th>Buyer PO</th>
<th colspan="2">Qty</th>
<th>Material</th>
<th>Destination</th>
<th>Delivery Date</th>
</tr>
</thead>
</table>
但我的問題是,我只是把<th colspan="2">Qty</th>
這就是使誤差,故稱未捕獲的風格undifined。我如何做這樣的clospan?因爲我需要在數量上放2個數據列。
tq爲答案,我敢打賭,我必須在頭上使用兩行。 tQ夥計:)
請嘗試以下** [此示例](https://datatables.net/examples/basic_init/complex_header.html)** –
http://stackoverflow.com/a/19427287 – mm759
@GuruprasadRao:對不起,我的壞languange,我使用你給出的例子的代碼。但我的問題是我不需要在頭上的第2行,我只需要在頭上的1行。這就是我的問題 – Wolfzmus