Purpose of *:before, *:after rule without content property

后端 未结 3 658
南笙
南笙 2020-12-04 00:05

From what I understand, :before and :after inserts content before or after the indicated target. I\'m not really sure what would be the purpose of

3条回答
  •  天涯浪人
    2020-12-04 00:52

    *, *:before, *:after { box-sizing: border-box; }

    This is for not to repeat in all places where you use :after and :before. It automatically adds to all :after and :before.

提交回复
热议问题