开发者

have to put page number on "footer-image-logo" while printing webpage

开发者 https://www.devze.com 2023-02-28 13:05 出处:网络
i have set footer-image in print page by using this code. @media print { div.divFooter { position: fixed;

i have set footer-image in print page by using this code.

@media print {
    div.divFooter {
        position: fixed;
        background: url(http://path/to/image.png);
        height: 100px; /* put the image height here */
        wid开发者_C百科th: 100px; /* put the image width here */
        bottom: 0;
    }
}

i have to put dynamic page no. like 1/5 , 2/5 , 3/5..etc where 5 is total no of page..how can i do this?


@page {
  @bottom-left {
    content: counter(page) "/" counter(pages);
  }
}
0

精彩评论

暂无评论...
验证码 换一张
取 消