Home  >  Article  >  Web Front-end  >  window.print prints the specified div instance code_javascript skills

window.print prints the specified div instance code_javascript skills

WBOY
WBOYOriginal
2016-05-16 17:09:141080browse

First we can put the content to be printed in a div, and then use the following code to print.

Copy code The code is as follows: