简体   繁体   English

Gmail字体颜色问题

[英]Gmail font color issue

I have a problem with the font color of the second email sent to a gmail address. 我发送到gmail地址的第二封电子邮件的字体颜色有问题。 I have the following syntax: 我有以下语法:

<p style="color:white">Dear Sir/Madam</p>

But in the next email, it adds a new span around the text forbidding me to control the style: 但是在下一封电子邮件中,它会在文本周围添加一个新的范围,禁止我控制样式:

<p style="color:white"><span class="im">Dear Sir/Madam</span></p>

The problem is similar to the following question: Font Color in HTML Email - Gmail 问题类似于以下问题: HTML电子邮件中的字体颜色 - Gmail

However, in my case it is adding a span instead of just adding a class and therefore forbidding from adjusting the color. 但是,在我的情况下,它是添加一个跨度而不是仅添加一个类,因此禁止调整颜色。 I tried using a different color (#FFFFFE) as well as !important but didn't solve the issue. 我尝试使用不同的颜色(#FFFFFE)以及!重要但没有解决问题。 As far as I know, CSS3 won't assist me as well since most things are not allowed in gmail. 据我所知,CSS3也不会帮助我,因为gmail中不允许使用大多数内容。

How can I avoid having this span in my emails? 如何避免在我的电子邮件中出现这种情况?

Edit: Attached an image that shows the color was overridden through !important but still appears purple. 编辑:附加一个图像,显示颜色被覆盖!重要但仍然显示为紫色。 颜色被覆盖了

使用内联样式,如果更简单,则不接受其他样式

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM