How to setup counters for target-counters
问题 In paged media, the CSS property target-counters can be used to include multiple counters. The spec gives the following example (simplified): a::after { content: "see section " target-counters(attr(href, url), section, ".") } that should output something like (see section 1.3.5) . How would I set up the section counter? 回答1: From the Generated Content Module (for non-paged content, too): Counters are "self-nesting", in the sense that re-using a counter in a child element automatically creates