【发布时间】:2014-01-21 07:43:20
【问题描述】:
我想给与文本颜色不同的文本添加下划线。我知道我可以在 a 中设置边框,但这在 Outlook 中不起作用。
我所做的是创建一个 1 px 表(实际上是一个 0 px 表,但 1 是我猜的最小高度)嵌套在另一个包含我的文本的表中,并使其宽度为 100%,以便它得到下划线。这种解决方案的问题在于,新闻通讯的接受范围很广。
有人遇到过这个问题吗?任何解决方法?
如果可以在 Outlook 上使用边界锚标记或跨度,则可以接受,但 Outlook 仍然大量用于阅读电子邮件。
检查我的代码:
<table align="center" width="630" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
<table align="center" border="0" cellpadding="0" cellspacing="0" style="font-family:Arial, Helvetica, sans-serif;font-weight:bold;">
<tr>
<td style="border:1px solid #000000;padding-left:10px;padding-right:10px;padding-top:5px;">
<a href="http://www.google.com" style="color:#000001;text-decoration:none;line-height:14px;display:block;"><span style="font-size:13px;line-height:13px;text-decoration:none;font-weight:bold;"><b>Check this out!</b></span><span style="font-size:14px;line-height:14px;color:#000000;font-weight:bold;"> ›</span></a>
<table width="100%" height="0" style="font-size:0px;line-height:0px">
<tr>
<td width="100%" bgcolor="#30fd3e" height="0" style="font-size:0px;line-height:0px"> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="15" align="center" style="font-size:0px;line-height:0px;">
</td>
</tr>
</table>
</td>
</tr>
</table>
和 JSfiddle:
感谢你们的时间,
比尔。
【问题讨论】:
-
这就像一个黑客尝试下面的网址 ================================== ==== stackoverflow.com/a/58228507/3771354