Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/css/37.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Css 使用背景色时边框消失_Css_Html Table_Border_Background Color_Hidden - Fatal编程技术网

Css 使用背景色时边框消失

Css 使用背景色时边框消失,css,html-table,border,background-color,hidden,Css,Html Table,Border,Background Color,Hidden,我正在尝试设置一个表,该表从JSON文件接收数据,然后呈现它。我的HTML如下所示: <thead> <tr> <th>Failme</th> <th>Ano</th> <th>Gênero</th> <th>Ranking</th> <th>Espectadores<

我正在尝试设置一个表,该表从JSON文件接收数据,然后呈现它。我的HTML如下所示:

  <thead>
    <tr>
        <th>Failme</th>
        <th>Ano</th>
        <th>Gênero</th>
        <th>Ranking</th>
        <th>Espectadores</th>
        <th>receita</th>
      </tr>
  </thead>
  <tbody>
          <tr>
              <td>7 Pecados Rurais</td>
              <td>Comboio Noturno para Lisboa</td>
              <td>RPG</td>
              <td>Bairro</td>
</tr>...
您可以在此处找到此问题的代码笔:


任何帮助都将不胜感激。

通过更改

display: table-row-group; 


您的HTML表结构毫无意义。为什么不像普通的桌子那样,每行有一个
。调用它并不是因为什么原因。@andi因为我从JSON文件中获取动态数据,并使用一个框架,该框架要求我像这样构建表。
display: table-row-group; 
display: inline-table;