我该如何在HTML邮件中居中一张图片,使其在Outlook中也能正常显示。
我尝试过以下方法:
<th align="center">
<center data-parsed="" class="logo">
<img src="[%embedded-image(1335);logo.png]" alt="" width="207" height="55" border="0"/>
</center>
</th>
也可以试试这样做
<p style="text-align: center"><img src="[%embedded-image(1335);logo.png]" alt="" width="207" height="55" border="0"/></>
在浏览器中看起来很好,但在Outlook中不行。 有什么有效的解决方案吗? 谢谢。
<td align="center">您的内容</td>
- core114<td align="center" valign="top"><img></td>
吗? - the_mishracenter
has been deprecated in favour oftext-align: center
(don't use<center>
) - declare this rule as an inline property on the containing element (th
) of theimg
element in question. Then define yourimg
tag as an inline-block by declaring the inline property ofdisplay: inline-block
- UncaughtTypeError