Printing Background Images in CSS
When utilizing CSS sprites for website imagery, it may be encountered that images do not print when the page is printed. To enable printing of the background image, consider the following solutions:
Add the following CSS rule to your print stylesheet:
<code class="css">@media print { * { -webkit-print-color-adjust: exact; } }</code>
Unfortunately, other web browsers (e.g., IE 9, 10, and 11) require manual user intervention. Users need to:
The above is the detailed content of ## How to Print Background Images with CSS Sprites?. For more information, please follow other related articles on the PHP Chinese website!