That is totally possible, but i can see two issues with your current approach.
The first issue is that when doing whole table printing, the table is actually replaced by a standard HTML table because browsers know how to print this better, so only the classes defined in the Print Styling List are available, all other selection should be done using standard table elements, so to style a column header would be:
.tabulator-print-table th{
//style table column header
}
To style the row containing the table headers would be:
.tabulator-print-table thead tr{
//style table header row
}
The other issue you may be facing is if you have set the printStyled
option to true
in the table setup then it will be applying the existing table styles as inline styles to each of the print tables elements, so you may need to use the !important
flag to override the inline styles:
border: black 3px !important;
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…