当我指定了Sans-Serif后,如何停止Yahoo在HTML电子邮件中显示衬线字体? [英] How do I stop Yahoo displaying serif fonts in HTML emails when I've specified sans-serif?

查看:71
本文介绍了当我指定了Sans-Serif后,如何停止Yahoo在HTML电子邮件中显示衬线字体?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我整理了一封HTML电子邮件.在一起,我们中的一些人知道如何做得很好(表格,内联样式等),并且可以完美地在多种浏览器以及Outlook,Google和Hotmail中显示.

I've put together an HTML email. Together, a few of us here know how to do this pretty well (tables, inline styles, etc.) and it displays perfectly on multiple browsers and in Outlook, Google and Hotmail.

但是,雅虎是另一回事.指定sans-serif后,所有文本均以衬线字体显示.这是一段代码,作为其完成方式的示例:

However, Yahoo is another matter. All of the text is displaying in a serif font when we have specified sans-serif. Here's a snippet of code as an example of how it's been done:

<tr>
  <td colspan="2" width="600px" style="padding: 15px 0 15px 0; font-family:arial,sans-serif; font-size:40px; color:#0066cc;">
    Some text in here
  </td>
</tr>

我们尝试改用< p> 标记并在其中进行样式设置,还尝试了< font face ="arial,sans-serif"> 这些似乎都不起作用.

We've tried using <p> tags instead and styling inside that, also tried <font face="arial, sans-serif"> but neither of these seem to work.

有人有类似的经历吗?和/或更重要的是,那里是否有HTML电子邮件专家知道如何解决此问题?

Has anyone had a similar experience and/or, more importantly, are there any HTML email gurus out there who know how to resolve this issue?

推荐答案

首先要看的是Yahoo提供给您的Web浏览器的HTML.如果他们确实修改了HTML,那么您的答案就可以了.

The first thing to look at is the HTML that Yahoo gives to your web browser. If they actually modified the HTML have your answer.

否则,它可能是一条CSS规则,在其自己的样式表中被定义为!important".如果是这种情况,那么 font-family:sans-serif!important 可以解决您的问题.

Otherwise, it could be a CSS rule which was defined as "!important" in their own stylesheet. If this is the case, then font-family:sans-serif !important could solve your issue.

这篇关于当我指定了Sans-Serif后,如何停止Yahoo在HTML电子邮件中显示衬线字体?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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