javascript - How to print the content of a specified area on a webpage written in Vue? ?
仅有的幸福2017-05-19 10:43:23
0
4
861
The webpage written by vue needs to print the content of the specified area, retain the original webpage style, and the original webpage content cannot be changed after printing, and jqprint cannot be used. How can this be achieved?
Basically the idea on the first floor, media queries are hidden in blocks that do not need to be printed when printing. You can use opacity or visibility to hide.
In the area you don’t want to print, add the .not-print class~
A rough way. . .
Basically the idea on the first floor, media queries are hidden in blocks that do not need to be printed when printing.
You can use opacity or visibility to hide.
http://stackoverflow.com/ques...
Print part of the web page