auto numbering

Prefixes and suffixes:

  • 1: prevent contamination label prefixes and suffixes affect the content of the web search when accuracy
  • 2: general label content data returned by the server, sometimes it is necessary to prefix
  • 3: prefix can not add html tags
  • css3 counter + content pseudo-class Technica
  • auto numbering:

  • couter-reset: reset counter
  • counter-increment: increment counter +1
  • Number counter () counter
  • Generally reset the counter in the parent element inside the
    name of the counter: (a variable number of times a record) see the name EENOW
    body {counter-reset: myh2 -1 ;}
    custom name space + + initial value 0 is the default
    recording a selected number that appears is

    H2 :: before {
    / * counter is incremented by one each time counter increment * /
    counter-iNCREMENT: myh2;
    / * counter (myh2) chronograph counter number * /
    Content: counter (myh2); "."
    }
The same hierarchy as much as possible with the same label tag

Guess you like

Origin www.cnblogs.com/baixuezhemei/p/11574213.html