只是想知道。此外,这是否适用于各种浏览器?
e.g:
<table><tr>
<td>asdf</td>
<td style="display:none;">asdf</td>
<td>asdf</td>
</tr></table>
colspan == 2还是3?
答案 0 :(得分:2)
是colspan=2
<table border=1>
<tr>
<td>asdf</td>
<td style="display:none;">asdf</td>
<td>asdf</td>
<td>go</td>
</tr>
<tr>
<td>asdf</td>
<td>asdf</td>
<td>asdf</td>
</tr>
<tr>
<td colspan=2>asdf</td>
<td>asdf</td>
</tr>
</table>
您可以通过此示例展开
来查看它