隐形(显示:无)细胞计入colspan

时间:2011-02-11 17:43:24

标签: html html-table invisible

只是想知道。此外,这是否适用于各种浏览器?

e.g:

<table><tr>
  <td>asdf</td>
  <td style="display:none;">asdf</td>
  <td>asdf</td>
</tr></table>

colspan == 2还是3?

1 个答案:

答案 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>

您可以通过此示例展开

来查看它