如何設置PrimeUI Datatable列寬? 我曾嘗試這個代碼(「http://www.primefaces.org/primeui/datatable.html」),它工作正常,但我想設置列寬,請幫我
THX的先進如何設置PrimeUI Datatable列寬
0
A
回答
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
另一種選擇是在columns數組中使用headerStyle選項。
{場: '觀看',HEADERTEXT: '查看',內容:createEditButton,headerStyle: 「寬度:8%」},
我一直沒能找到完整的選項列表列數組,所以如果有人知道它在哪裏,請發佈它!
相關問題
- 1. filering PrimeUI datatable
- 2. 如何爲DataTable設置列寬
- 3. 設置dataTable中所有列的寬度
- 4. C#Datatable列寬
- 5. JQuery datatable:設置固定頭和寬度
- 6. 設置列寬
- 7. 如何設置DataTable中
- 8. 固定列寬的JQuery DataTable
- 9. 如何更改Bootstrap Datatable頭列寬度
- 10. 如何更改Datatable的列寬度
- 11. jquery datatable - 設置列寬和包裝文本
- 12. 如何設置列寬儘可能小?
- 13. 如何設置datagridview中列的寬度
- 14. 如何設置列的固定寬度?
- 15. 如何設置CMFCPropertyListCtrl的列寬?
- 16. 如何設置jira表的列寬
- 17. 如何設置寬度爲LISTBOX列?
- 18. 如何在phpmyadmin上設置列寬?
- 19. 如何在QTreeView上設置列寬?
- 20. 如何設置AspXGridView的列寬 - EditForm?
- 21. asp.net c#detailview如何設置列寬
- 22. 如何在JTable/JXTable中設置列寬?
- 23. 如何PHPExcel設置自動列寬度
- 24. LinqToCsv設置列寬
- 25. 如何在數據表中設置一些列寬的列寬
- 26. jquery datatable列寬問題
- 27. 在R中設置列寬Shiny DataTable在許多列中不起作用
- 28. 在dataTable中保存/恢復列寬
- 29. 如何設置QWidget寬度?
- 30. 如何設置寬度CKEDITOR
它正在工作,但我想設置特定列的寬度。如何設置它爲ex-1st列寬:50px,第二列寬度:100px,thx高級 –
我編輯了我的答案。刪除現在添加的寬度並添加這些類。 – Goombah
非常感謝你....這是工作:) –