X 归档 2025-10-06
Coming from CSS, I really appreciate how Tailwind gives you utilities to style direct children, all descendants, arbitrary variants, and more
*:style (direct children)
**:style (descendants)
[&.selector]:style (arbitrary variants)
Really flexible!
*:style (direct children)
**:style (descendants)
[&.selector]:style (arbitrary variants)
Really flexible!
从 CSS 过来,我很欣赏 Tailwind 提供的工具类可以为直接子元素、所有后代、任意变体等设置样式
*:style(直接子元素)
**:style(后代元素)
[&.selector]:style(任意变体)
非常灵活!
*:style(直接子元素)
**:style(后代元素)
[&.selector]:style(任意变体)
非常灵活!

