I'm currently using iText to take HTML and convert it to a PDF document. I'm attempting to use some CSS to create nested ordered list ie:
1
1.1
1.2
2
2.1
2.2
I've tested my CSS and it appears to work, however when I feed it into Itext it seems to ignore counter-increment
and counter-reset
.
The CSS that I'm using is:
ol { counter-reset: index } li { display: block } li:before { content: counters(index, ".") ") "; counter-increment: index; }
Am I missing something, or does iText simply not recognize these selectors?
从 iText 7.0.3 版本开始,支持counter
、 counter-increment
和counter-reset
属性。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.