Home >Web Front-end >JS Tutorial >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:141114browse

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: