0

我的电子邮件模板中有一个表格。我应用样式来右对齐 td 中的文本。但是当我使用 hotmail 检查它们时,样式标签看起来是空的。我align="right"在 td. 但什么也没有发生。

html:

<table width="100%" border="0" cellpadding="0">
  <tr>
    <td style="text-align:right" >Test Content</td>
  </tr>
</table>

如何做到这一点?

4

1 回答 1

0

If I am not mistaken I believe most email services will strip out inline styles. Most likely you will have to do all of the styling with HTML and tables.

Try this and see what happens:

<table width="100%" border="0" cellpadding="0" align="right">
  <tr>
    <td>Test Content</td>
  </tr>
</table>

All email services handle code differently so I would first look around google and see what kind of information you can find in regards to inline styles and Hotmail. Below are a couple links I found.

http://www.startupcto.com/marketing-tech/html-email/tips-and-tricks http://www.webknowhow.net/dir/HTML/CSS/0607CSSSupportineMail.html

于 2013-01-04T19:31:43.273 回答