Re-Implementing :nth-child() With Modern CSS
Combining :nth-child with style queries and sibling-index() to conditionally select child elements.
Re-Implementing :nth-child() With Modern CSS originally handwritten and published with love on CSS-Tricks. You should really get the newsletter as well.
原文:https://www.a8q9.cn/en/article/re-implementing-nth-child-with-modern-css-dd46c9.html