0

当在表的父 div 中应用背景颜色时,颜色不适用于 Outlook 2013 邮件

<div style="background-color:red">
   <table>
     <tr>
        <td>
            Background color not applying
        </td>
     </tr>
  </table>
</div>

当在表格中应用背景颜色时,颜色适用于 Outlook 2013 邮件

<div>
   <table style="background-color:red">
     <tr>
        <td>
            Background color is applying
        </td>
     </tr>
  </table>
</div>

有什么方法可以在父 div 中应用颜色?

4

2 回答 2

0

您可能知道 Outlook 使用 Word 来呈现电子邮件正文。

调用了两个支持级联样式表属性子集的 HTML 元素:DIVP. DIVP支持 Word 支持的级联样式表的子集,并在以下文章中由术语 COREEXTENDED 定义:

于 2018-06-18T13:05:54.353 回答
0

猜测这是 Outlook 2013 Windows,但您可以尝试将 div 包装在 a 中并在 style="" 之外应用 bgcolor。或者简单地尝试一般的 bgcolor 。

于 2018-07-05T16:58:05.330 回答