javascript - Actual page number and total pages numbers in Chrome print mode -


i need create custom footer in print mode in chrome. have fixed positioned footer , set bottom 0. footer displays on every page. added <p> class footer-paragraph , tried count elements class name footer-paragraph. got 1 element 15 pages. why getting 1 element object when have 1 element each printed page? tried css. found this:

@page {    @bottom-center {       content: counter(page) "/" counter(pages)    } } 

but doesn't work in newest chrome. chrome has own footer doesn't good. there trick solves this?

too bad, that's read in page

"3.3.4. pages()

the 'pages()' function returns total number of pages in document. allows text such "page 1 of 5" inserted in margin boxes. function potentially expensive in terms of processing required, , applies paged media."


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -