小编sfd*_*fdc的帖子

如何在html中创建嵌套表

我需要创建一个带有内表的 HTML 表,如下图所示:

[示例][1] 我很困惑是应该为左侧和右侧表创建两个单独的表还是将它们组合在一个表中

我尝试了下面的示例,但它没有以我想要的格式生成,基本上,它没有生成内部 HTML 表:

<table >

  <thead>
    <tr>
      <th>VITAL SIGNS</th>
      <th>FREQUENCY</th>
      <th></th>
      <th>TOTAL SUPPORT</th>
      <th>ASSIST</th>
      <th>SEE CARE</th>
      <th>FREQUENCY</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <th>Temperature</th>
      <th><input type="text" /></th>
      <th>SKIN CARE</th>
      <th></th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
    <tr>
      <th>BP</th>
      <th><input type="text" /></th>
      <th>APPLY LOTION</th>
      <th><input type="checkbox" /></th>
      <th><input type="checkbox" /></th>
      <th><input type="checkbox" /></th>
      <th><input type="text" /></th>
    </tr>
    <tr>
      <th>Pulse</th>
      <th><input type="text" /></th>
      <th>ACTIVITY</th>
      <th></th>
      <th></th>
      <th></th>
      <th></th>
    </tr>
    <tr>
      <th>Respiration</th>
      <th><input type="text" /></th>
      <th><input type="checkbox" />
        <input type="checkbox" />
      </th> …
Run Code Online (Sandbox Code Playgroud)

html datatable html-table nested-table

-2
推荐指数
1
解决办法
7621
查看次数

标签 统计

datatable ×1

html ×1

html-table ×1

nested-table ×1