【发布时间】:2014-03-21 14:36:51
【问题描述】:
是否有替代 HTML 电子邮件中的负面定位的方法?下面第二个表格中的图像使用负定位向上定位100px。我需要该图像与上面的内容有些重叠。
<table>
<tr>
<td valign="top" width="400" style="padding-right:10px;">
<p style="color:#575757;font-size:13px;line-height:19px;font-weight:normal;font-family:'Century Gothic'; text-align:justify;">Lorem Impsum</p>
</td>
<td><img src="kneeler.jpg" /></td>
</tr>
</table>
<table>
<tr>
<td style="position:relative; top:-100px;"><img src="shoes.jpg" /></td>
<td valign="top" width="400" style="padding-left:10px;">
<p style="color:#575757;font-size:13px;line-height:19px;font-weight:normal;font-family:'Century Gothic'; text-align:justify;">Lorem ipsum</p>
</td>
</tr>
</table>
我尝试过padding-top: -100px;,但没有奏效。请帮忙!
【问题讨论】:
-
margin-top:-100px在实际图像上而不是 td 上? -
成功了!谢谢!但是负值在 HTML 电子邮件中有效吗?
-
我认为电子邮件客户端不允许负保证金值或任何保证金值 - Hotmail and Outlook.com Drop Support for Margin。
-
它没有用。我测试了电子邮件。谢谢@Ex-iT,我一直在使用该活动监控指南。
-
是的,对电子邮件客户端不太确定 - 我总是尽量让一切都尽可能简单 - 如果在简单的表格中不合适,我会告诉客户不!如果您只是想在图像上添加文本,最好只使用带有文本的图像
标签: html css html-email