表colspan和rowspan问题?

时间:2015-09-13 08:01:17

标签: html html-table

我有一张简单的桌子,工作正常,但今天我检查了一下,一切都搞砸了。我的代码colspanrowspan中的所有表格都没有正确显示。



<table width="1150" border="0" cellpadding="5" id="bop">
  <tr>
    <th rowspan="2">BOP DRILLS</th>
    <th>DRILLING</th>
    <th>RAMS CLOSE</th>
    <th>WELL SECURE</th>
    <th rowspan="2">FINAL ACC.</th>
    <th>Sec</th>
    <th>Psi</th>
    <th rowspan="2">Recharge</th>
    <th>Sec</th>
    <th>Psi</th>
  </tr>
  <tr>
    <td>
      <input name="bopdrilling" id="boptext" type="text" />
    </td>
    <td>
      <input name="ramsclose" id="boptext" type="text" />
    </td>
    <td>
      <input name="wellsecure" id="boptext" type="text" />
    </td>
    <td>
      <input name="finalsec" id="boptext" type="text" />
    </td>
    <td>
      <input name="finalpsi" id="boptext" type="text" />
    </td>
    <td>
      <input name="rechargesec" id="boptext" type="text" />
    </td>
    <td>
      <input name="rechargepsi" id="boptext" type="text" />
    </td>
  </tr>
</table>
&#13;
&#13;
&#13;

table that I get from the above code

it has to be like:

0 个答案:

没有答案