printing div content with css applied

后端 未结 8 894
北海茫月
北海茫月 2020-12-28 17:13

I am working on a project and I want to print div content.The code which I am using is fulfilling my requirements,but I am getting simple output without Css applied to it an

8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-28 17:25

    You need to change the css property media to print. Add new line to your function createPopup() as below you attached your css:

    mywindow.document.write( "" );
    

提交回复
热议问题