I am facing a problem with css counter-increment, number is not appearing in Output.Please help me. Please explain me clearly.
This is my codepen: codepen enter code here
"counter(number)"
will be detected as string. Just remove the ""
.
h1:before {
counter-increment: number;
content: counter(number);
}
If you want with period after number:
h1:before {
counter-increment: number;
content: counter(number) ". ";
}
只需删除counter(number)
周围的引号即可。
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.