Home  >  Article  >  Web Front-end  >  js implements the code to print part of the content defined in the web page_javascript skills

js implements the code to print part of the content defined in the web page_javascript skills

WBOY
WBOYOriginal
2016-05-16 18:30:51958browse

1. Add
JavaScript to the code header of the page:

Copy the code The code is as follows:



2. Add the and logos to the page text. That is, append it to the html corresponding to the text that the user needs to print and save.

3. The intercepted content part has been completed. Now add the "Print" link: Print.
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn