2

我有一个要求以不同尺寸(A3、A2 等)设置不同页面的样式。

是否有可能对不同大小的不同页面使用不同的@pages?

我需要这样的东西:

@page 1{
     
        size: A3 landscape;
        margin-top: 50mm;
        margin-bottom: 50mm;
        margin-left: 0mm;
        margin-right: 0mm;
   
        @top-right {
            content: element(headerPage); 
             border-top:2px solid #434190;
        }
     
        @bottom-right {                 
            content: element(footerPage);
            border-top:2px solid #434190;
        }
      }

第二页:

 @page 2{
             
                size: A2 landscape;
                margin-top: 50mm;
                margin-bottom: 50mm;
                

margin-left: 0mm;
            margin-right: 0mm;
       
            @top-right {
                content: element(headerPage); 
                 border-top:2px solid #434190;
            }
         
            @bottom-right {                 
                content: element(footerPage);
                border-top:2px solid #434190;
            }
          }

另外,我需要更改哪些内容才能应用不同的页面?

非常感谢。

4

0 回答 0