I have application and I want to have print button that print my page, but with original style from css. Already I have button that evoke function window.print()
. Also i have print.scss
with styles
@media print {
header {display:none;}
footer {display:none;}
button {visibility: hidden;}
}
Problem is that I want to have original styles from my styles files (there are many).
(I cut off buttons on purpose.)
Okey I found solution, it was just no background colors attached. In media query for print I just added this:
-webkit-print-color-adjust: exact !important;