问题
I have a panel in my html page that is to be printed on click of the print button. The print button uses window.print() for this. I have a table in my page which has some background colors to it. The color coding is kinda important to my application while printing.
I added -webkit-print-color-adjust: exact; css to my table style classes and it was working as expected in Chrome browser.
However, in CHROMIUM browser, the text which is in the table appears with a white background in the PDF. Please refer the snapshot below for your reference.
Expected result
Current output
I am really stuck here. :( Please help!! Any help will be highly appreciated.
来源:https://stackoverflow.com/questions/34428821/print-html-table-with-background-colors-in-chromium-browser