短评 · ·

X 归档 2025-10-06

1 条动态 · 图 1 · 视频 0
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!
从 CSS 过来,我很欣赏 Tailwind 提供的工具类可以为直接子元素、所有后代、任意变体等设置样式

*:style(直接子元素)
**:style(后代元素)
[&.selector]:style(任意变体)

非常灵活!
@DavidKPiano 的配图 1/1