We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
第136天 你有了解css计数器(序列数字字符自动递增)吗?如何通过css的content属性实现呢?
The text was updated successfully, but these errors were encountered:
counter-reset:设置计数器 counter-reset: count 0 /* 计数器从1开始 */ counter-increment: 递增数值 counter-increment: count 2 /* 用于count 每次递增2 */ eg.
counter-reset
counter-reset: count 0 /* 计数器从1开始 */
counter-increment
counter-increment: count 2 /* 用于count 每次递增2 */
<ul> <li>Item</li> <li>Item</li> <ul> <li>Item</li> <li>Item</li> </ul> </ul>
ul { counter-reset: count; } li::before { counter-increment: count; content: counters(count, '-')'.'; }
1.Item 2.Item 2-1.Item 2-2.Item
Sorry, something went wrong.
No branches or pull requests
第136天 你有了解css计数器(序列数字字符自动递增)吗?如何通过css的content属性实现呢?
The text was updated successfully, but these errors were encountered: