@mediaPrint {// Write the style here}Copy the code

Only one print CSS configuration can be added to a page. If multiple CSS configurations are added to a page, the meta=”print” attribute cannot be added.

If a single CSS is added to a printed page, meta=”print” is optional, that is, either of the following is acceptable

 

<link href="a.css" rel="stylesheet" meta="print">
 <link href="a.css" rel="stylesheet">
Copy the code

If you want to print multiple CSS pages, you cannot add the meta=”print” attribute, and the plug-in cannot read this attribute.

<link href="a.css" rel="stylesheet">
<link href="b.css" rel="stylesheet">
Copy the code

 

Ps: Be sure to introduce it externally