简体   繁体   中英

Make first column of p-table a different colour to the rest

Does anyone know how to make the first column of a p-table a different colour to the rest? And then the other columns alternating colours? I can only seem to find a way of doing this with rows? Currently the style class is just this -

[styleClass]="'p-datatable-gridlines'"

which makes the rows alternating colours, not the columns.

`

  1. Blockquote

 <!DOCTYPE html> <head> <body> <meta charset-utf"8"> <color>="blue"</color> </body> </head> <color>"blue"</color>

`

*

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM