I need to print some pages with C开发者_如何学JAVASS backgrounds but they don't appear in Safari or Chrome, in FF there's an option in Page Setup but I haven't been able to find it in these two browsers. Do they not support it?
Thanks all in advance.
In chrome (newer versions 17+ I think), this is controlled by a CSS property on the items which developers can add:
-webkit-print-color-adjust:exact;
From the user's point of view, there doesn't seem to be an option for this.
With the newest Chrome, that is an option.
You can also just take a screen shot and print the bitmap image in an image editor or paste the screen shot in Word to print.
Chrome Version 69.0.3497.100 (Official Build) (64-bit)
I had this issue again, it was the Twitter Bootstrap CSS causing the issue. When I stopped using Bootstrap, the issue was resolved without any need for the special CSS property (-webkit-print-color-adjust:exact;).
Printing background images is a browser-dependent feature. FF and IE have it but you cannot force it otherwise via sourcecode.
精彩评论