Yahoo Mail CSS Targeting 2020 [英] Yahoo Mail CSS Targeting 2020

查看:76
本文介绍了Yahoo Mail CSS Targeting 2020的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

2019年,电子邮件开发人员过去能够通过以下媒体查询来定位yahoo邮件的CSS:

In 2019, email developers used to be able to target yahoo mail's css with the media query below:

<body>
<style>
@media screen yahoo {
.class-name {css}
}
</style>

我的问题是使用网络字体.我需要将Yahoo邮件的字体大小作为目标.

My issue is with using web fonts. I need to target font-size for yahoo mail.

是否有一种针对2020年针对Yahoo Mail CSS的新方法?

Is there a new method for targeting yahoo mail css in 2020?

谢谢

推荐答案

Litmus的Alice Li 得出结论,2020年的新Yahoo过滤器不会过滤出奇怪的Unicode字符.

Alice Li of Litmus has worked out that the new Yahoo filters for 2020 do not filter out weird unicode characters.

但是,它似乎捕获了AOL&雅虎(我说出现"是因为它在Litmus预览中间歇出现):

However, it appears to capture AOL & Yahoo (I say 'appears' because it comes up intermittently on Litmus previews):

<html>
<body>
<!-- START force fallback on Yahoo/AOL -->
<style>
    .& #√ .yahooAOLhide {display: none !important;}
    .& #√ .yahooAOLshow {display: block !important;}
</style>
<!-- END force fallback on Yahoo/AOL -->
<table id="√"><tr><td>  
<div class="yahooAOLhide">
    @@@@@@@@
</div>
<div class="yahooAOLshow" style="display: none;mso-hide:all;">
    YAHOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO!
</div>
</td></tr></table>
</body>
</html>

如您所见,<style>部分必须写在<body>中,以便也可以与Yahoo应用程序一起使用.

As you can see, the <style> section must be written in the <body> so as to work with the Yahoo app too.

这篇关于Yahoo Mail CSS Targeting 2020的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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