1
我只是想加粗我的表中的列标题,它比我想要的要长得多。我试图覆盖ui-datatable头和其他属性没有运气。现在我正在尝试使用模板来完成它。primeng DataTable标题
<p-column field="noticeType" [sortable]="true" [filter]="true" [style]="
{'overflow':'visible', 'font-weight':'bold'}" filterPlaceholder="Search">
<ng-template pTemplate="header">
<th [style]="{'font-weight': '600'}">Notice Type</th>
</ng-template>
“通知类型”标签显示没有问题,但没有更改样式。我也尝试使用组件的CSS文件来设计“th”而没有运气。有人有主意吗?