2014-01-06 108 views

回答

1

只需添加寬度

.pui- datatable theat th,.pui-datatable tbody td,.pui-datatable tfoot td

class?

Edit: 

.pui-datatable thead th:nth-child(1), 
.pui-datatable tbody td:nth-child(1), 
.pui-datatable tfoot td:nth-child(1) { 
    width: 50px; 
} 

.pui-datatable thead th:nth-child(2), 
.pui-datatable tbody td:nth-child(2), 
.pui-datatable tfoot td:nth-child(2) { 
    width: 100px; 
} 
+0

它正在工作,但我想設置特定列的寬度。如何設置它爲ex-1st列寬:50px,第二列寬度:100px,thx高級 –

+0

我編輯了我的答案。刪除現在添加的寬度並添加這些類。 – Goombah

+0

非常感謝你....這是工作:) –

0

另一種選擇是在columns數組中使用headerStyle選項。

{場: '觀看',HEADERTEXT: '查看',內容:createEditButton,headerStyle: 「寬度:8%」},

我一直沒能找到完整的選項列表列數組,所以如果有人知道它在哪裏,請發佈它!