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

后端 未结 2 801
醉酒成梦
醉酒成梦 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:17

    There is a yahoo fix/bug workaround that uses this technique (css classes) in html email design. There was a bug where Yahoo rendered all media queries by default, and this was the common solution.

    There have been reports that Yahoo fixed the bug recently.

    0 讨论(0)
  • 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.

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