2015-10-13 78 views
0

我有一個重複控制,對於每一行我想設置一個自舉響應表。現在它看起來像這樣: enter image description here在重複控制中設置自舉響應表的列寬

問題是,我想設置列寬,使他們排隊​​更好。我試圖做兩行網格,但兩行很好地摺疊,但是然後數據不在標籤下。我已經嘗試過class =「width:200px」或在div中使用了%,但這似乎沒有影響。就像明智的一樣,如果添加到的。

我會解決一個網格或響應表解決方案。 我的代碼看起來是這樣的:

<div class="table-responsive"> 
        <table class="table table-bordered table-condensed " style="width:900px"> 
    <thead> 
     <tr > 
      <th class="width:150px">Label</th> 
      <th class="width:250px">Default Approvers</th> 
      <th class="width:75px">Auto Process</th> 
      <th class="width:75px">Routing</th> 
      <th class="width:75px">Post Approval</th> 
      <th class="with:75px">Post Denial</th> 
      <th class="width:50px">Notify Late</th> 
     </tr> 
    </thead> 
    <tbody> 
     <tr> 
      <td> 
. 
. 
. 
</tbody> 

回答

0

第一:你以前class屬性設置style值。如果你更改爲style那麼它應該工作。 儘管我建議你使用colgroup。 http://www.w3schools.com/tags/tag_colgroup.asp

+0

我知道了!有時顯而易見的是隱藏在明顯的視野中! –