简体   繁体   English

电子邮件HTML签名; 当我更改表格大小时,字体大小也会更改

[英]Email HTML Signature; font size changes when I make change to the table size

I am trying to create a company-wide email signature. 我正在尝试创建公司范围内的电子邮件签名。 Here is the code for it: 这是它的代码:

<table style="font-family:verdana, arial, sans-serif; color:#7f7f7f; font-size:12px; line-height:15px">
    <tr>
        <td><div style="font-size:145px; color:#69cd37; line-height:0px; position:relative; top:-17px; left:7px; margin-left:-20px">&#9679;</div></td>
        <td>
            <b>firstName lastName, </b><i>title</i><br />
            <b style="color:#69cd37">Company Name</b><br />
            Street, City, State, Zip<br />
            <b>office </b>###.###.#### | <b> mobile</b>###.###.####
        </td>
    </tr>
</table>

When I test this email, it looks great and works fine on most of our HTML enabled emails. 当我测试这封电子邮件时,它看起来很棒,并且可以在我们大多数启用HTML的电子邮件上正常工作。 The problem lies within "Good for Enterprise" email. 问题出在“ Good for Enterprise”电子邮件中。 Most of the higher-ups use "Good" email on their mobile phones. 大多数上流人士在手机上使用“好”电子邮件。 The signature looks fine and the font sizes are all correct, but it wraps, and it wraps bad. 签名看起来不错,并且字体大小都正确,但是可以换行,也可以换行。

So to fix it, I've tried everything: table width="500" , style="min-width:500px" , white-space:nowrap; 因此,为解决此问题,我尝试了所有方法: table width="500"style="min-width:500px"white-space:nowrap; . These all fix the wrapping problem, but they seem to enlarge the font by double! 这些都解决了换行问题,但是它们似乎将字体扩大了两倍! And there's no explanation to it. 而且没有任何解释。

Is there any reason it would be enlarging it? 有什么理由会扩大它吗? When I send an email with the original version (posted above) and a new version with no wrapping, the original version has correct font size, but the wrapped version's font size is huge. 当我发送带有原始版本(上面已发布)和没有换行的新版本的电子邮件时,原始版本的字体大小正确,但是换行版本的字体大小很大。 Is the wrapping interacting with the phone screen width? 包装材料是否与手机屏幕宽度相互作用?

Put all of your text styling in the <td> tag it is contatined in. In many email clients you have to redeclare in every single <td> that contains text. 将所有文本样式都放在包含它的<td>标签中。在许多电子邮件客户端中,您必须在每个包含文本的<td>中重新声明。 You don't need it in the <table> tag, just the <td> tags. 您不需要在<table>标记中使用它,只需在<td>标记中使用它。

If that doesn't work, try -webkit-text-size-adjust:none; -ms-text-size-adjust:none; font-size-adjust:none; 如果那不起作用,请尝试-webkit-text-size-adjust:none; -ms-text-size-adjust:none; font-size-adjust:none; -webkit-text-size-adjust:none; -ms-text-size-adjust:none; font-size-adjust:none; , in the <td> inline style, although that may be a long shot (not sure what/how "Good" works). ,以<td>内联样式显示,尽管可能会花费很多时间(不确定“良好”的工作方式/方式)。

If you are still out of luck, try and find a way to view the code as it is rendered (after "Good" does it's thing). 如果您仍然不走运,请尝试找到一种在呈现代码时查看代码的方法(在“良好”之后就可以了)。 This may help debug the cause and might possibly reveal a way to prevent it. 这可能有助于调试原因,并可能揭示防止原因的方法。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM