多余的行出现在表格/表格

时间:2019-05-30 00:25:07

标签: javascript html css

我是html的新手,需要一些帮助来完善我的代码。我已经创建了表格/表格,并且正在通过表格填写数据。该表看起来很好,并且数据也正在保存。但是,在网格的开头出现了额外的一行。我不确定如何摆脱它。

<table class="table border nowrap dataTable no-footer">
  <thead class="thead-dark">
    <tr role="row">
      <th class="plex-data-table-head sorting_asc">Range</th>
      <th class="plex-data-table-head sorting_asc">Sum of voxels</th>
      <th class="plex-data-table-head sorting_asc">Sum of HU x # product</th>
      <th class="plex-data-table-head sorting_asc">Mean HU</th>
      <th class="plex-data-table-head sorting_asc">Weighting Factor</th>
      <th class="plex-data-table-head sorting_asc">Total Volume</th>
      <th class="plex-data-table-head sorting_asc">Ca Score</th>
    </tr>
  </thead>
  <tbody>
    @{foreach record in model['data']['grid-tlevci']} @{if !helpers.isEmpty(model['data']['grid-tlevci'])}
    <tr class="grid-rows odd">
      <td>
        @{if !helpers.isEmpty(record['grid-9670-7550'])} @{record['grid-9670-7550']} @{else} --- @{fi}

      </td>
      <td>
        @{if !helpers.isEmpty(record['grid-4140-10'])} @{record['grid-4140-10']} @{else} --- @{fi}


      </td>
      <td>
        @{if !helpers.isEmpty(record['grid-hm9xcc'])} @{record['grid-hm9xcc']} @{else} --- @{fi}

      </td>
      <td>
        @{if !helpers.isEmpty(record['grid-kfjdo'])} @{record['grid-kfjdo']} @{else} --- @{fi}

      </td>
      <td>
        @{if !helpers.isEmpty(record['grid-p4m23'])} @{record['grid-p4m23']} @{else} --- @{fi}

      </td>
      <td>
        @{if !helpers.isEmpty(record['grid-udj32'])} @{record['grid-udj32']} @{else} --- @{fi}

      </td>
      <td>
        @{if !helpers.isEmpty(record['grid-609p6'])} @{record['grid-609p6']} @{else} --- @{fi}

      </td>

    </tr>


    @{fi} @{end}


  </tbody>

</table>

enter image description here

enter image description here

0 个答案:

没有答案