我使用float对图片进行右对齐。
<div align="left">
Insight
<img height="20" style="float:right;" src="https://mydomain/myimage.jpeg">
</div>
我将此html作为电子邮件发送。然而,在微软outlook的图像不正确对齐,因为我认为微软outlook不支持浮动。
还有其他方法可以右对齐吗?
表、嵌套表和更多表是Outlook的关键。
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td align="right" valign="top">
<img height="20" src="https://mydomain/myimage.jpeg">
</td>
</tr>
</table>