2017-04-18 102 views
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”而没有运气。有人有主意吗?

回答

0

您是否尝试覆盖类ui-column-title.ui-datatable .ui-datatable-thead>tr>th覆盖font-weight:900可以替代我。