gpt4 book ai didi

html - Outlook 签名 valign 在 gmail 中不起作用

转载 作者:行者123 更新时间:2023-11-28 04:04:15 25 4
gpt4 key购买 nike

你好,我正在制作 outlook 签名,我想将我的文本垂直居中到图像。

我对 Gmail 有疑问,因为它看起来像:见下图。 Gmail problem

gmail 好像没读过

vertical-align:middle;" valign="middle"

我已经准备好代码片段,这里一切正常。

<div style="font-family:'Calibri light', sans-serif; margin-left: 15px;">
<img alt="phone" src="/image006.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle"></img>
<span style="font-size: 11pt; display: inline; white-space: nowrap; text-align:right;">&nbsp 000 000 000</span>
<br>
<img alt="fax" src="/image008.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle">
</img>
<span style="font-size: 11pt; display: inline; white-space: nowrap; text-align:right;">&nbsp 000 000 000</span>
<br>
<img alt="cell" src="/image010.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle">
</img>
<span style="font-size: 11pt; display: inline; white-space: nowrap; text-align:right;">&nbsp 000 000 000</span>
<br>
<img alt="mail" src="/image012.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle"></img>
<span style="font-size: 11pt; display: inline; text-align:right;">&nbsp name@web.com</span>
<br>
<br>
<span style="display: inline; font-size: 11pt"><b>Company Name</b></span>
<br>
<span style="display: inline; font-size: 11pt">address</span>
<br>
<span style="display: inline; font-size: 11pt">00000000000</span>
<br>
<a style="color:black; text-decoration:none; display: block;" href="http://www.web.com">
<span style="display: inline; font-size: 11pt;"><b>www.web.com</b></span></a>
</div>

最佳答案

在为电子邮件编码时,您需要坚持使用表格。我已将您的签名重新编码为我认为适用于所有电子邮件客户端的内容。试一试,让我知道它是否有效。

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="padding-left: 15px;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td width="3%" align="left" valign="middle"><img alt="phone" src="/image006.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle"></td>
<td width="97%" align="left" valign="middle" style="font-family:'Calibri light', sans-serif;font-size: 11pt; display: inline; white-space: nowrap; text-align:left;"> 000 000 000</td>
</tr>
<tr>
<td align="left" valign="middle"><img alt="fax" src="/image008.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle"></td>
<td align="left" valign="middle" style="font-family:'Calibri light', sans-serif;font-size: 11pt; display: inline; white-space: nowrap; text-align:left;"> 000 000 000</td>
</tr>
<tr>
<td align="left" valign="middle"><img alt="cell" src="/image0010.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle"></td>
<td align="left" valign="middle" style="font-family:'Calibri light', sans-serif;font-size: 11pt; display: inline; white-space: nowrap; text-align:left;"> 000 000 000</td>
</tr>
<tr>
<td align="left" valign="middle"><img alt="email" src="/image0012.png" height="18" width="19" style="display: inline; vertical-align:middle;" valign="middle"></td>
<td align="left" valign="middle" style="font-family:'Calibri light', sans-serif;font-size: 11pt; display: inline; white-space: nowrap; text-align:left;"> name@web.com</td>
</tr>
</tbody>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="font-family:'Calibri light', sans-serif;display: inline; font-size: 11pt; padding-top:20px;"><b>Company Name</b></td>
</tr>
<tr>
<td style="font-family:'Calibri light', sans-serif;display: inline; font-size: 11pt">address</td>
</tr>
<tr>
<td style="font-family:'Calibri light', sans-serif;display: inline; font-size: 11pt">00000000000</td>
</tr>
<tr>
<td><a style="font-family:'Calibri light', sans-serif;color:black; text-decoration:none; display: block;" href="http://www.web.com"><span style="display: inline; font-size: 11pt;"><b>www.web.com</b></span></a></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</tbody>
</table></td>
</tr>
</tbody>
</table>

干杯

关于html - Outlook 签名 valign 在 gmail 中不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43033097/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com