The datatable rendered table does not print a background color.

The

page is now the data loaded with the datatable plug-in, the added background color, which now needs to be printed out, but the added background color has no effect on print preview? Is there any good way to solve it?

clipboard.png

clipboard.png

clipboard.png

even if you add an inline style print like this in figure 3, you won"t be able to print a color.

Mar.03,2021

add this css:-webkit-print-color-adjust: exact; try


refer to this to see if it helps

.
Menu