Anyone know what the purpose of tagging a class with *[class]

后端 未结 2 800
醉酒成梦
醉酒成梦 2021-01-25 22:55

I received a file from a client today that is a template for an e-mail and in the css for the mobile version all of the class specifications were preceded with *[class]

2条回答
  •  粉色の甜心
    2021-01-25 23:19

    The square brackets are attribute selectors and the '*' is a wild card, so your client is selecting every element that has the class attribute.

提交回复
热议问题