如何设置PrimeUI Datatable列宽?
我已经尝试过此代码(“ http://www.primefaces.org/primeui/datatable.html”),它工作正常,但我想设置列宽,请帮帮我
Thx高级

最佳答案

只需添加宽度


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


类?

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;
}

关于javascript - 如何设置PrimeUI Datatable列宽,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/20947153/

10-15 23:07