【问题标题】:Horizontal two column page printing issue横向两栏页打印问题
【发布时间】:2019-05-20 19:02:37
【问题描述】:

我制作了一份基于两列且横向布局的报告。我正在尝试添加页码但不工作。这是jsfiddle

   /*Page Number*/
    @page main-print-page:right {
        @bottom-right {
            content: counter(page);
            font-size: 11pt;
            color: grey;
        }
    }

截图:

我们可以在上面的截图中看到,一个水平页面和两列。这里应该显示每列的第 1 页和第 2 页

谁能帮帮我?

【问题讨论】:

    标签: html css printing


    【解决方案1】:
     div.main-print-page{
             counter-reset: page;
           }
          .page{
             position:relative;
           }
          .page:nth-child(even):after {       
    
              counter-increment: page;
              content: counter(page);
    
          }
    

    【讨论】:

    • 请提供一些解释。
    • 我已经修改了@Sfili_81
    猜你喜欢
    • 2011-04-04
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2010-09-13
    相关资源
    最近更新 更多