※★CSS
table,th,td {
width: 300px;
border: 1px solid #cccccc;
}
tr.sample {
visibility: collapse;
}
※★HTML
<table>
<tr>
<th>見出し1-1</th>
<th>見出し1-2</th>
</tr>
<tr class="sample">
<td>データ2-1</td>
<td>データ2-2</td>
</tr>
<tr>
<td>データ3-1</td>
<td>データ3-2</td>
</tr>
</table>
見出し1-1 | 見出し1-2 |
---|---|
データ2-1 | データ2-2 |
データ3-1 | データ3-2 |