为gmail编写HTML电子邮件。链接图像显示霓虹蓝色背景

问题描述 投票:0回答:1

我希望有人可以帮我这个。我已经尝试了所有我知道的东西并阅读了我能找到的所有文章。没有任何效果

基本上,似乎只有在包含标题图像的<td>中的Gmail上显示霓虹蓝色背景颜色。

屏幕截图(缺少图​​像):

enter image description here

截图(图像显示霓虹灯背景):

enter image description here

表格代码:

<table border="0" cellspacing="0" class="body-wrap" bgcolor="#FFFFFF" style="max-width: 600px">
  <tbody>
    <tr>
      <td align="center" class="container" bgcolor="=FFFFFF" style="padding: 0px; margin: 0px; line-height:10px; font-size:6px">
        <div class="container1">
          <a href="http://www.rolla.com" style="text-decoration: none; border: none"><img src="https://rolla.igamingcloud.com/Images/Emails/MailSystem/Upload/rolla_system_header.gif" align=“absbottom” width="100%" style="display:block; max-height: 172px; max-width: 600px; border:none; padding: 0px; margin 0px" border="0" alt="Rolla Casino Logo"
            /></a>
        </div>
      </td>
    </tr>
  </tbody>
</table>

我在表格和td中指定了背景颜色white。我还在hrefimg标签的边框上添加了样式属性。这些都没有奏效。

containercontainer1都包含:

border-width:0 none;
background: #ffffff;
text-decoration: none;
text-decoration-color: #ffffff;

即使我取消了标题图像的链接并发送了另一个测试,蓝色就在那里!

html email gmail html-email
1个回答
0
投票

我认为你在td的背景颜色装饰中添加了一个相等而不是哈希。你有bgcolor="=FFFFFF"而不是bgcolor="#FFFFFF"。以下是固定代码:

<table border="0" cellspacing="0" class="body-wrap" bgcolor="#FFFFFF" style="max-width: 600px">
  <tbody>
    <tr>
      <td align="center" class="container" bgcolor="#FFFFFF" style="padding: 0px; margin: 0px; line-height:10px; font-size:6px">
        <div class="container1">
          <a href="http://www.rolla.com" style="text-decoration: none; border: none"><img src="https://rolla.igamingcloud.com/Images/Emails/MailSystem/Upload/rolla_system_header.gif" align=“absbottom” width="100%" style="display:block; max-height: 172px; max-width: 600px; border:none; padding: 0px; margin 0px" border="0" alt="Rolla Casino Logo"
            /></a>
        </div>
      </td>
    </tr>
  </tbody>
</table>

干杯

© www.soinside.com 2019 - 2024. All rights reserved.