【发布时间】:2013-03-05 23:42:48
【问题描述】:
我有这个代码:
<style>
tr, .bar{
display: table-row;
}
th, td, .pcell{
display:table-cell;
border: black solid 1px;
}
</style>
<body>
<table>
<div class="bar">
<label class="pcell">Stuff</label>
<label class="pcell">moose</label>
</div>
<tr>
<td>Other Stuff</td>
<td>cow</td>
</tr>
<tr>
<div class="pcell">More Stuff</div>
<td>chicken</td>
</tr>
</table>
</body>
我希望能够用标签替换表格单元格,而无需替换整个表格。有没有办法做到这一点?我可以只替换一行,而不是整个表。
我正在尝试使用改编自 this 教程的可选标签创建标题行。 谢谢。
【问题讨论】:
标签: html css html-table