任何人都知道用* [class]标记类的目的 [英] Anyone know what the purpose of tagging a class with *[class]

查看:182
本文介绍了任何人都知道用* [class]标记类的目的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到了一个来自客户端的文件,它是一个电子邮件的模板,在移动版的css中,所有的类规范前面都有* [class]



例如

  * [class] .centertext {
somespec:0;
}

任何人都知道将类添加到类的目的是什么? > /www.mailonacid.com/blog/details/C13/stop_yahoo_mail_from_rendering_your_media_queriesrel =nofollow> yahoo fix / bug解决方法在html电子邮件设计中使用此技术(css类)。有一个错误,雅虎在默认情况下提交了所有媒体查询,这是常见的解决方案。



有报告说,Yahoo最近修复了错误。


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]

e.g.

*[class].centertext {
somespec:0;
}

anyone know what the purpose of adding that to a class is?

thanks.

解决方案

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.

这篇关于任何人都知道用* [class]标记类的目的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆