Firefox中没有正确显示引导程序表边框。我在项目中创建了一个表,但它在Firefox中没有正确显示。但铬很好。请大家帮帮我
Firefox中没有正确显示引导程序表边框。我在项目中创建了一个表,但它在Firefox中没有正确显示。但铬很好。请大家帮帮我
#product-attribute-specs-table th {border-bottom: medium none;border-radius: 0;border-right: medium none;box-shadow: none;color: #333333;display: block;font-size: 100%;font-weight: 600;line-height: 1.42857;text-align: left; }

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<table id="product-attribute-specs-table" class="data-table table table-striped">
<tbody>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr odd="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr odd="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr odd="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr odd="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr odd="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr odd="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr odd="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
<tr even="">
<th class="label ">Test 1</th>
<td class="data">Test 2</td>
</tr>
</tbody>
</table>
&#13;
答案 0 :(得分:1)
将display: block
更改为display: table-cell
。
CSS:
#product-attribute-specs-table th {
border-bottom: medium none;
border-radius: 0;
border-right: medium none;
box-shadow: none;
color: #333333;
display: table-cell;
font-size: 100%;
font-weight: 600;
line-height: 1.42857;
text-align: left;
}
我希望这会对你有所帮助。
享受:)