Is it possible to style anonymous flex items explicitly?

前端 未结 4 2112
时光说笑
时光说笑 2020-12-11 23:07

I\'m in the early stages of grasping the basic flexbox concepts. The Using CSS Flexible Boxes article at MDN states (emphasis mine):

Each child of a f

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-11 23:44

    No, it isn't possible.

    The W3C Candidate Recommendation says:

    Note also that the anonymous item’s box is unstyleable, since there is no element to assign style rules to. Its contents will however inherit styles (such as font settings) from the flex container.

提交回复
热议问题