【问题标题】:Merge cells in an HTML table合并 HTML 表格中的单元格
【发布时间】:2021-10-30 01:38:46
【问题描述】:

我需要合并表格中的单元格 这就是我的想象:

image

提前谢谢你。

【问题讨论】:

  • 分享目前为止尝试过的代码sn-p。

标签: html html-table


【解决方案1】:

您好,首先我建议您阅读how to ask

其次,您要查找的属性是 HTML rowspan 属性

<table>
  <tr>
    <th>Month</th>
    <th>Savings</th>
    <th>Savings for holiday!</th>
  </tr>
  <tr>
    <td>January</td>
    <td>$100</td>
    <td rowspan="2">$50</td>
  </tr>
  <tr>
    <td>February</td>
    <td>$80</td>
  </tr>
</table>

【讨论】:

    猜你喜欢
    • 2018-03-21
    • 2011-05-19
    • 2013-07-05
    • 2023-02-25
    • 2011-01-14
    • 2020-09-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多