使用 DTOptionsBuilder 隐藏 header table 使用 Angular DataTables

Using DTOptionsBuilder to hide header table using Angular DataTables

通常根据Datatables的文档我认为有必要给一个值falsefixedHeader .withOption('fixedHeader', false) 但它不起作用

尝试使用 css

破解

.inventory_related thead {
  display: none;
}
<table>
  <thead>
    <th>header 1</th>
    <th>header 2</th>
  </thead>
  <tbody>
    <td>row value 1</td>
    <td>row value 2</td>
  </tbody>
</table>
<table class='inventory_related'>
  <thead>
    <th>header</th>
    <th>header 2</th>
  </thead>
  <tbody>
    <td>row value 3</td>
    <td>row value 4</td>
  </tbody>
</table>