私は単純なテーブルを作成しようとしているが、私は連続したテーブル行にcolspans
を設定した後、第二列のcolspan
属性が上書きされます。ネストされたCOLSPAN
<table class="d-week">
<caption>
<h4>table</h4>
</caption>
<thead>
<tr>
<th class="col_first"></th>
<th colspan="1">1st week</th>
<th colspan="1">2nd week</th>
<th colspan="1">3rd week</th>
</tr>
<tr>
<th></th>
<th colspan="3">prop1</th>
<th colspan="3">prop2</th>
<th colspan="3">prop3</th>
</tr>
</thead>
<tbody>
<tr>
<td></td>
<td>col1</td>
<td>col1</td>
<td>col1</td>
<td>col2</td>
<td>col2</td>
<td>col2</td>
<td>col3</td>
<td>col3</td>
<td>col3</td>
</tr>
</tbody>
</table>
しかし、ここでは、テーブル本体細胞であります(たとえ最初のヘッダーの行からcolspan
プロパティを削除しても)2番目のヘッダーの代わりに1番目のヘッダーの行に揃えられます。誰か助けてくれますか?
EDIT:2つ目のヘッダーの行に3つ以上ある場合はどうなりますか?th
http://jsbin.com/icetom/3
Calあなたはまた、あなたが期待するものの簡単な例を挙げます。 – Nivas