I face the same problem mentioned in this question, but for background-image
, the answer for that question only supports filling the whole div
with a certain solid color not an image.
My case is that I have a group of div
s that I give each a different background-image
like the following:
@media print {
.AdultDentalChart .tooth .toothImage1 {
background-image: url("@Url.Content("~/images/DentalChart.png")") !important;
background-position: 0px 10px;
-webkit-print-color-adjust: exact;
}
Bear in mind that I am facing the same code in Bootstrap that needs to be overridden
* {
color: #000 !important;
text-shadow: none !important;
background: transparent !important;
box-shadow: none !important;
}