我有一封固定宽度的邮件。但是gmail压缩了它。如何防止压缩?
<table bgcolor="#F3F3F3"
style="Margin:0;margin:0;padding: 0;font-family:'Arial',sans-serif;max-width:100%;padding:0;width:100%;background:#F3F3F3;">
<style>
a{
text-decoration: none;
color: inherit;
color: inherit !important;
}
@media print{
body, html{
-webkit-print-color-adjust: exact;
}
}
</style>
<tbody>
<tr>
<td>
<center>
<table width="600" bgcolor="#6999CC"
style="Margin:0 auto;margin:0 auto;max-width:100%;width:600px;background:#6999cc;">
<tbody bgcolor="#6999CC" style="background: #6999CC">
<tr bgcolor="#6999CC" style="background: #6999CC">
<td bgcolor="#6999CC" style="background: #6999CC">
<center bgcolor="#6999CC" style="background: #6999CC">
<table>
<tbody>
<tr>
<td height="4" style="height: 4px;line-height: 4px;"> </td>
</tr>
</tbody>
</table>
<!--spacer-->
<table cellpadding="0" cellspacing="0" border="0" width="570" ...
在其他应用程序中,我没有这个问题。我已经尝试修复所有的层,包装应该是100%的宽度。有什么技巧可以让gmail理解宽度吗?
如果我有几封信,gmail会进行“对话”,所有内容都会被引用。在它之后,每个引用布局都刹车!即使它是ok的earlier.Because gmail削减一半的样式使用这个“伟大的”功能!
发布于 2019-07-12 18:34:19
这个问题是因为增加了应用程序中的字体大小。为了防止增加,我在末尾添加了这一行:
<div style="white-space:nowrap!important;line-height: 0; color: #ffffff;">
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
</div>
https://stackoverflow.com/questions/56992368
复制相似问题