问题描述
我一直在测试我最近创建的HTML电子邮件过程。但最近,当我在Gmail中打开电子邮件时,我注意到某些元素被封装在一个类中,我知道我没有将它放在原始的HTML布局中。其实我只是三重检查!当在Gmail中查看HTML电子邮件时,我的表单的随机部分将被包裹... ...
I have been testing out an HTML e-mail process I've created recently. But as of lately, when I open the e-mail in Gmail, I'm noticing that certain elements are wrapped in a class that I know I didn't put in the original HTML layout. In fact I just triple checked! When viewing the HTML email in Gmail, random sections of my form are being wrapped with...
<div class="im">
....
</div>
因此,一些文字会变成紫色,而其他文字则不会。为什么会出现这种情况?
As a result, some text turns purple, while other text does not. Why does this happen?
感谢
推荐答案
Gmail中似乎认为您在对话中引用了其他电子邮件,因此在代码的各个部分周围包装 div.im
,以为它们是对话中的前几位。
Gmail seems to think that you are quoting other emails in a conversation and so is wrapping div.im
around the sections of your code that it thinks are previous bits in a conversation.
如果您的代码具有多个TR的TABLE,则可能发生这种情况。要解决这个问题,而不是在一个表中使用几个TR,可以使用几个TABLE,每个表中有一个TR。
This might happen if your code has a TABLE with more than one TR. To get around this, rather than several TRs in one TABLE, use several TABLEs with one TR in each.
如果您有多个主题行同样,导致Gmail认为这是一次谈话。您可以通过使每个主题行都是唯一的来解决这个问题。
This might also happen if you have multiple subject lines that are the same, causing Gmail to think this is a conversation. You can fix this by making each subject line unique.
这篇关于Gmail在一个名为im的类中封装了某些HTML元素的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!