However, your background-color and color definitions are being beaten out by other CSS with higher specificity. In your case, the -webkit-print-color-adjust: exact is working. In these cases you just need to be aware of CSS specificity as the print rules don't automatically win against non-print CSS rules. Often times just setting up some extra print CSS is not enough because you still have all your other CSS included when printing as well. First, separate all your print CSS from your screen CSS. Several things can be done to avoid the difficulties you are having. However, making sure you have the correct CSS for printing can often be tricky. ![]() So I tried this property: -webkit-print-color-adjust: exact ĥ10 xxx Chrome CSS property -webkit-print-color-adjust: exact works appropriately. ![]() ![]() When I view the print preview in chrome its not taking on the background color property. In that page I have given a table a background color.
0 Comments
Leave a Reply. |