English 中文(简体)
电子邮件将某些超文本元素列入一个称为“成像”的类别。
原标题:Gmail wraps certain HTML elements in a class called im
  • 时间:2013-05-22 10:51:49
  •  标签:
  • html
  • gmail

我一直在测试最近设立的I ve超文本电子邮件程序。 但截至最近,当我在Gmail开放电子邮件时,我不明白某些内容是用我知道的原超文本布局中的一类。 事实上,我只进行了三倍的检查。 在收看Gmail的超文本电子邮件时,正对我表格的随机部分进行总结。

<div class="im">
....
</div>

As a result, some text turns purple, while other text does not. Why does this happen?

Thanks

最佳回答

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.

如果贵国的法典有不止一项条约,则可能发生这种情况。 绕过这一点,而不是几个TABLE公司,使用几个TABLE,每个公司都有一个TABLE。

如果你有相同的多个主题,使Gmail认为这是一个对话的话,也可能发生这种情况。 你们可以通过使每个主题界线独一无二的方式来解决这一问题。

问题回答

单体字文件并不用于电子邮件。 您可以做的是,在html中,这一类的风格如下:

  <head>
       <style type="text/css">
        .im {
           color: #000000 !important;
        }
    </style>
  </head>

如果发现“,请上“”类。

我在使用一个段落时也遇到这个问题,该段用的是一条单行的间隔:

<p>
   line 1<br>
   line 2<br>
   line 3
</p>

我得以纠正这一问题,从把所有空白空间从超文本这一特定部分移走,把整个段落及其所有内容 back倒在屏幕左边。 相信它会看一看一小 me,你会失去你应有的冷漠,但我认为这帮助了。 Gmail 并非偶然地认为你重新引用一些内容。

电子邮件显示功能在某些文本中增加了一个字面。 为了在电子邮件头部界定的标签上解决这一问题,我增加了以下风格:

<head>
  <style>
.im {
    color: inherit !important;
  }
  div > span.im {
    color: inherit !important;
  }
  p > span.im {
    color: inherit !important;
  }</style></head>

我也有类似的问题。 我正在通过使用模板发送电子邮件。 因此,当我向同一地址发出多封电子邮件时,所有信条都完全相同。 Gmail 自动添加这一标记:

<div class="im">
.........
</div>

我不知道,事实上,在我Gmail的谈话中,我似乎总结了共同的文本。 类似讨论here

我也有这个问题。 我在每一行端加上一个五轨随机<代码>char,并标明了背景。 然后这个问题就固定了。

这不是一种好的方式,但如果不是另一种方式,你或许可以尝试。

如果有这样的风格,可使用<条码>和代号;br> tag in email html:<br=”箱式-sizing: Border- Box”>

对我来说,我只是需要防止Gmail在发出我的电子邮件时阅读。 这当然会阻止任何随后的电子邮件获得纯本,因为这些邮件不是儿童阅读的。

如果你也这样做,你就可以简单地确定员工和管理当局协调会的头盔:代码,具有任何价值。 这就是谷歌+通知的做法。

我不确切地知道这名负责人做了什么,但是,由于他在开始时用X标出,这意味着它是私人的头盔,因此,除了Gmail之外, t子也没有任何其他影响。

创立这一答案:here,我非常高兴地分享这一答案。

你们忽视了这种形式的非同阶级。

<b style="color:black;">Some text</b>

有些案文没有纯彩色。

在我的主要表格一中,最后一名儿童补充说:

<div style="display:none;">1</div>

页: 1 我正在用一个模板,用小标题制作内容。

`<div style="display:none;">${new Date().toString()}</div>`

You will also need to add style="color:#000;" to the parent. This will prevent the entire email as showing as quoted, and hence not color the text with the .im class

如果你重新向电子邮件转口,Gmail自动将内容放入<div category=“im”>,这说明为什么文字颜色转纯。

只是试图组成新的电子邮件。

因此,我在设计一个网上应用地雷的邮寄系统时遇到了这一问题。 这里提出的解决办法对我来说是很费时的,因为邮件内容巨大,而且许多地方的帽子正在添加。 这份文件是我来这里的时候。 当Gmail客户收到两个或两个以上带有同一主题线的电子邮件时,Gmail就增加了.。 所有电子邮件均按主题线分成一个谈话小组。 Gmail检测了从前一份电子邮件中引出的第二份(第三、第四)的部分。 我简单地删除了以前的电子邮件,由于Gmail don t把邮件合并在一起,这个问题已经解决。 帮助我 =>的文章;

https://litmus.com/ community/discussions/5189-gmail-changes-color-of-text-im-class

这一解决办法对我有利,因为我的申请的意图是不要一劳永逸地分享多个电子邮件。 希望这样,这一答案是有用的。

I have added color: initial as an inline style in the headers of the table (for me, it occurs in table headers). It overrides the purple color of the im class in the .

i 由于存在<代码>{>email Address >>/code>,发现问题。

i 改为<?=$email Address?>

!





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签