javascript - Jquery print area print css colors -
i'm using printarea jquery: https://github.com/ritsc/printarea
but i'm having little trouble print colors when printing
i want print when print https://imagizer.imageshack.us/v2/815x185q90/673/imzbhd.jpg
that's have: https://imagizer.imageshack.us/v2/437x549q90/674/ddksru.jpg
this js:
$('#imprimir').on('click', function(){// busca os dados ao clicar no botão $(".area_impressao").printarea({ mode : "iframe", standard : "html5", poptitle : 'relatorio', popclose : false, extracss : '../css/impressao_retrato.css', extrahead : '', retainattr : ["id","class","style"], printdelay : 500, // tempo de atraso na impressao printalert : true, printmsg : 'aguarde impressão' }); });
i tried change line didnt work:
extracss : '../css/impressao_retrato.css, ../css/style.css, ../css/main.css',
thanks in advance!
i think solve problem:
create css file, put printable elements in (those visible when print). please, world favor , don't print attempts, use pdf generator printer.
@media print { .mycustom{color:#88000;background-color:#ff0000} /*set here custom stiles want, each element*/ }
Comments
Post a Comment