Css 使用背景色时边框消失
我正在尝试设置一个表,该表从JSON文件接收数据,然后呈现它。我的HTML如下所示: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<
<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;