2016-09-08 5 views
0

Bootstrap-Tabelle Grenze nicht korrekt in Firefox angezeigt. Ich habe eine Tabelle im Projekt erstellt, aber sie wird in Firefox nicht richtig angezeigt. Aber Chrom ist in Ordnung. bitte helfen sie mirBootstrap-Tabelle Grenze nicht korrekt in Firefox

Bootstrap Tabelle Grenze nicht korrekt in Firefox angezeigt. Ich habe eine Tabelle im Projekt erstellt, aber sie wird in Firefox nicht richtig angezeigt. Aber Chrom ist in Ordnung. bitte Jungs helfen mir

enter image description here

#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>

+0

Warum 'mit ' und '' in derselben Zeile? Nur zu ** fettem ** Text? Nun, Sie können statt "stark" oder "b" verwenden. Möglicherweise verursacht dies das Problem. – vivekkupadhyay

+0

Lernen Sie von hier. http://www.w3schools.com/bootstrap/bootstrap_tables.asp –

+1

Können Sie diesen Code Firefox auch Chrom https://jsfiddle.net/cns1p65r/17/ testen, das funktioniert perfekt und zeigt gleiche Grenzen. –

Antwort

1

ändern display: block zu 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; 
} 

Ich hoffe, das Ihnen hilft.

Enjoy :)

+0

Danke jyoti sehr nützliche Antwort. –

Verwandte Themen