简体   繁体   English

Outlook 2010电子邮件背景颜色html / css属性不起作用

[英]outlook 2010 email background color html/css property does not work

I have tried the below code for background color for header in email template. 我已经尝试了以下代码作为电子邮件模板标题中的背景颜色。 The code is working fine for other email clients, but in outlook 2010 it won't show up background color at all. 该代码对于其他电子邮件客户端而言效果很好,但是在Outlook 2010中,它根本不会显示背景色。 I have tried adding and removing 'px' but it did not make any difference. 我尝试添加和删除“ px”,但没有任何区别。 What change do I need to make to it to support in outlook 2010? 我需要对其进行哪些更改以支持Outlook 2010?

<div style="background-color: #xxxxx;" width="600" height="70"> </div>

You can replace it with this code below and use bgcolor in table tag or td tag or add style to table tag and include background style. 您可以在下面的代码中替换它,并在表格标签或td标签中使用bgcolor或向表格标签添加样式并包括背景样式。

I also added Screenshot showing its working in outlook 2010 我还添加了截图,显示了它在Outlook 2010中的工作原理

 <table width="600" border="0" cellpadding="0" cellspacing="0" bgcolor="red" style="background: red;"> <tr> <td height="70" bgcolor="red"></td> </tr> </table> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在 Outlook 2010 html 电子邮件中显示背景颜色? - how to display background color in outlook 2010 html email? 如何从Outlook 2010/2013中的html电子邮件模板的答复中删除背景色 - How to remove background color from reply of html email template in Outlook 2010/2013 Outlook 2010字体前景色/背景色CSS不能很好地配合使用 - Outlook 2010 font foreground/background color CSS not playing nice together HTML 按钮背景颜色属性不起作用 - HTML Button background-color property does not work 在 VBA 创建的 HTML Outlook 电子邮件中设置电子邮件正文背景颜色 - Setting email body background color in a VBA created HTML Outlook email HTML电子邮件模板无法在Outlook中呈现属性 - html email template does not rendering property in Outlook 背景颜色在Outlook中不起作用。如何使表格在电子邮件中看起来不错? - background color does not work in outlook..How to make my table look good in email? HTML CSS background-image 属性根本不起作用 - HTML CSS background-image property does not work at all Outlook 2010为什么会破坏我的HTML电子邮件正文? - Why does Outlook 2010 break my HTML email body? 在Outlook中显示时可以设置图像(HTML电子邮件)的背景颜色吗? - Is it possible to set the background color of an image (HTML email) when displayed in Outlook?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM