-1

我想创建一个如下所示的表:

______________________________________________________________
|              |                |      Category1             |
|              |   Platform1    |____________________________|
|              |                |      Category2             |
|              |________________|____________________________|
|   Build      |                |      Category1             |
|              |                |____________________________|
|              |                |      Category2             |
|              |   Platform2    |____________________________|
|              |                |      Category3             |
|______________|________________|____________________________|

我写了一些代码,但我认为它不正确。由于我对 HTML 很陌生,有人可以给我一些建议:

4

1 回答 1

4

像这样的东西:

<table width="200" border="1">
  <tr>
    <td rowspan="5">Build</td>
    <td rowspan="2">Platform1</td>
    <td>Category1 </td>
  </tr>
  <tr>
    <td>Category2 </td>
  </tr>
  <tr>
    <td rowspan="3">Platform2</td>
    <td>Category1 </td>
  </tr>
  <tr>
    <td>Category2 </td>
  </tr>
  <tr>
    <td>Category3</td>
  </tr>
</table>

JSFIDDLE

于 2013-04-26T20:51:02.060 回答