Html page number content

I need to create a table of contents for a large html page to be printed.
The only option I found is CSS3, and now it doesn’t work in browsers (I have tried FireFox and know that the Web Kit does not support it either). Here's a link . HTML code:

<a class="pageref" href="#figure">see the figure</a> 

CSS3 Code:

 a.pageref::after { content: " on page " target-counter(attr(href), page) } 

Is there any other way to do this? How can i use it in firefox? Since the solution I found is a w3 project for css3, as I understand it, and browsers do not yet support it.

+6
source share
1 answer

I think it would be so simple:

 a.pageref{ counter-reset: pagecounter; } a.pageref:before { content: " on page " counter(pagecounter); counter-increment: pagecounter; } 

Link here

+2
source

Source: https://habr.com/ru/post/959160/


All Articles