How to print a DIV without losing my CSS styles

0

I want to print the contents of a DIV, however it loses the styles. This is the preview of the print, as you can see it loses all styles: c ...

this the code that I have ...

If someone has some code that works, I would appreciate it very much

    
asked by Sergio Cordova 26.10.2018 в 09:25
source

1 answer

0

Test adding styles for printing in your main.css file

Example: @media print {   / * Here what styles you want to give * / }

    
answered by 26.10.2018 в 09:35