雅虎邮件不显示正确的字体系列 [英] Yahoo mail not showing correct font family

查看:292
本文介绍了雅虎邮件不显示正确的字体系列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚完成了我的HTML电子邮件,它在Gmail,Outlook 2010上正常工作,但是当我在Yahoo电子邮件上打开它时,显示Times New Roman,而不是我在电子邮件中使用的Verdana字体。

I have just completed my HTML email, it is working fine on Gmail, Outlook 2010 however when I opened it on Yahoo email it show Times New Roman instead of Verdana font I have used in my email.

也检查了原因,发现雅虎在每个文本之前添加了一个< p> 标签,并在其上应用id。具有CSS样式

Also inspected the reason and found Yahoo adds a <p> tag before each text and apply a id on it. which has CSS style

#yiv7369716753 p {
    font-family: "Times New Roman","serif";
    font-size: 12pt;
} 



我也试图通过使用CSS块和使用内联样式但没有成功...

I have also tried to override this by using CSS block and also used inline styles on but no success...

body, p, #yiv9010530589 p {
    margin:0; 
    padding:0; 
    font-family:"Verdana", Geneva, sans-serif!important;
}

任何人如果你有任何解决方案,请共享,

Anyone if you have any solution then please share the same, because I have tried to search it online but not get something prominent instead of suggestions like use inline styles and use important within styles.

推荐答案

我在网上搜索,但没有得到突出的建议,而不是像使用内联样式和使用重要的样式。有这个问题与雅虎许多次,和谷歌如何解决它每次,没有失败。我发现的唯一的工作是从字体系列声明中删除所有引号(单和双)。

I've had this problem with Yahoo many many times, and google how to fix it every time, without fail. The only thing I've found that works is removing all quotation marks (single and double) from the font family declaration.

font-family:"Verdana", Geneva, sans-serif!important;

变为....

font-family:Verdana, Geneva, sans-serif;

显然,这可能对两个字的字体有其他影响,但这是另一个问题另一天。

and that should work. Obviously this may have other consequences for two-word fonts, but that's another problem for another day.

这篇关于雅虎邮件不显示正确的字体系列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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