Which CSS selector can be used to select a flex box item in wrapped state?

前端 未结 1 633
说谎
说谎 2020-12-07 02:28

I have a display:flex row with 3 columns and flex-wrap is enabled. Between the columns are handle divs. When the columns are wrapped t

相关标签:
1条回答
  • 2020-12-07 02:44

    There is no CSS selector to select specifically wrapped flex items, unfortunately.

    (It's unlikely that any such selector will be added, because it'd create weird circular dependencies. e.g. suppose a flex item wraps because it's too wide for the first line -- and then you select it & restyle it to be skinny, which means it no longer wraps. So then the selector should no longer match -- but then it's wide again, which makes it wrap... etc.)

    0 讨论(0)
提交回复
热议问题