【问题标题】:html email template and justified texthtml 电子邮件模板和两端对齐的文本
【发布时间】:2011-03-18 22:08:05
【问题描述】:

我有一个 html 电子邮件模板(使用表格地狱),生成的电子邮件在 gmail 和 Outlook 2003 中看起来很好。但在 Outlook 2007 中,文本没有对齐(而是左对齐)。有解决办法吗?

用到的相关代码:

<td style="text-align: justify;">

文档类型:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml">

谢谢

【问题讨论】:

  • 你有电子邮件的代码吗?
  • 是的,我以为我输入了相关代码,但它已经消失了。相关部分: <td style="text-align: justify;"> doctype: ttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" rel="nofollow" target="_blank"&gt;w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; w3.org/1999/xhtml"&gt;

标签: html outlook justify


【解决方案1】:

是微软让我们的工作更轻松,客户的用户体验至上。很明显。

也可以试试style=" float:left;"

【讨论】:

    【解决方案2】:

    试试这个:

    <td style="text-align:justify !important;">
    <p style="your style, but don`t use text-align declaration in here">
    Lorem ipsum
    </p>
    </td
    

    【讨论】:

      【解决方案3】:

      看起来这可能是 Outlook 2007 中的一个错误。

      http://www.campaignmonitor.com/forums/viewtopic.php?id=1149

      恐怕也没有真正的解决方法;这可能是不可能的。

      【讨论】:

      • 谢谢,我预计 2007 年的展望只是一个奇怪的怪癖。与 2003 年相比,我很惊讶他们完全打破了它。
      【解决方案4】:

      不要在电子邮件上使用浮动,一些电子邮件客户端不支持它。

      【讨论】:

        猜你喜欢
        • 2012-04-16
        • 1970-01-01
        • 2013-03-10
        • 2018-03-28
        • 2012-11-11
        • 2011-05-22
        • 2011-11-23
        • 2013-08-09
        • 1970-01-01
        相关资源
        最近更新 更多