Home  >  Article  >  Web Front-end  >  Print two-sided documents using CSS settings

Print two-sided documents using CSS settings

王林
王林forward
2023-08-29 08:53:021115browse

Print two-sided documents using CSS settings

#When printing a double-sided document, the page boxes on the left and right pages should be different.

Example

can be represented by two CSS pseudo-classes as follows:

<style>
   <!--
      @page :left {
         margin-left: 4cm;
         margin-right: 3cm;
      }
      @page :right {
         margin-left: 3cm;
         margin-right: 4cm;
      }
   -->
</style>

The above is the detailed content of Print two-sided documents using CSS settings. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete