2016-07-10 4 views
0

IMAGE ブートストラップを使用してテーブルを正しくフォーマットすることができません。私はこのコードを何度もチェックしましたが、なぜ正しく見えないのかわかりません。ブートストラップテーブル行バッドサイズ調整

<table class="table table-striped table-bordered"> 
    <thead> 
     <th>#</th> 
     <th>Mecz</th> 
     <th>Liga</th> 
     <th>Kurs</th> 
     <th>Data Rozpoczęcia</th> 
    </thead> 
    <tbody> 
     <tr data-toggle="collapse" data-target="#accordion" class="clickable"> 
      <th scope="row"><span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></td> 
      <td>Test</td> 
      <td>Test</td> 
      <td>Test</td> 
      <td>Test</td> 
     </tr> 
     <tr> 
      <td colspan="3" style="padding: 0px;"> 
       <div id="accordion" class="collapse" style="padding: 5px;">Hidden</div> 
      </td> 
     </tr> 
    </tbody> 
</table> 
+0

ですか? aaa-hidden = "true"> ' –

+0

まだ動作しませんが、私はそれを修正します – TomChw

+0

これはjsfiddleで正しく動作しています。私は使用しています。 TomChw

答えて

0

あなたのコードは、tdタグで閉じられている内側のtbodyを除いて正常に動作しているようです。それを修正するためにHTMLコードを修正しました。チェックするもう一つのことは、あなたのテーブルスタイリングを無効にするような別のスタイリングルールがあるかもしれないということです。他のスタイルシートを無効にして、ブートストラップを残して問題が解決するかどうか確認することができます。

以下は、テーブルのデモです。それはあなたが ``で `` 閉鎖しようとしているので、

<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet"/> 
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> 
 
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> 
 
<table class="table table-striped table-bordered"> 
 
    <thead> 
 
     <th>#</th> 
 
     <th>Mecz</th> 
 
     <th>Liga</th> 
 
     <th>Kurs</th> 
 
     <th>Data Rozpoczęcia</th> 
 
    </thead> 
 
    <tbody> 
 
     <tr data-toggle="collapse" data-target="#accordion" class="clickable"> 
 
      <td scope="row"><span class="glyphicon glyphicon-chevron-down" aria-hidden="true"></span></td> 
 
      <td>Test</td> 
 
      <td>Test</td> 
 
      <td>Test</td> 
 
      <td>Test</td> 
 
     </tr> 
 
     <tr> 
 
      <td colspan="3" style="padding: 0px;"> 
 
       <div id="accordion" class="collapse" style="padding: 5px;">Hidden</div> 
 
      </td> 
 
     </tr> 
 
    </tbody> 
 
</table>