我希望有人能帮我这个忙。我已经尝试了我所知道的一切,阅读了我能找到的所有文章。什么都没起作用
基本上,只有在包含标题图像的<td>
中,才会出现霓虹灯蓝色的背景颜色。
屏幕截图(缺少图像):
截图(图片显示霓虹灯背景):
表编码:
<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>
我已经在表格中指定了背景颜色white
和td。我还在href
和img
标记的边框中添加了样式属性。所有这些都没有奏效。
类container
和container1
都包含:
border-width:0 none;
background: #ffffff;
text-decoration: none;
text-decoration-color: #ffffff;
甚至当我取消标题图像的链接并发送另一个测试时,蓝色也在那里!
发布于 2018-05-31 03:44:27
我认为您在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>
干杯
https://stackoverflow.com/questions/50607246
复制相似问题