html - 我怎样才能让边框元素呈现在 Outlook 2010 中?

标签 html css outlook

我正在尝试让以下 HTML 在 Outlook 2010 中完全呈现假按钮(因为 outlook 不呈现许多 css 选择器)。 :

<table style="border: solid; background-color: red;">
<tbody >
<tr>
<td><a style = "text-decoration:none"href="www.google.com"  ><span style="color: black;">here</span></a></td>
</tr>
</tbody>
</table>

除了边框衬里根本不呈现外,一切似乎都正常。据我了解,outlook 应该呈现这个( http://www.campaignmonitor.com/css/ ),但没有。任何人都可以提供的任何帮助将不胜感激。

最佳答案

我通常只是像这样使用边框的简写 css 属性:

<table cellspacing="0" cellpadding="0"> <tr> 
<td align="center" width="300" height="40" bgcolor="#fff" style="-webkit-border-radius: 5px; -moz-border-radius: 5px;  border: solid 1px #e9e9e9; border-radius: 5px; color: #000; display: block;">
<a href="http://www.EXAMPLE.com/" style="color: #000; font-size:16px; font-weight: bold; font-family: Helvetica, Arial, sans-serif; text-decoration: none; line-height:40px; width:100%; display:inline-block">
Awesome Email Button
</a>
</td> 
</tr> 
</table> 

(奇怪)出于某种原因,速记边框 css 属性在 Outlook 07 和 2010 中正确呈现

参见 http://jsfiddle.net/E6ZYz/

引用链接:http://emailwizardry.nightjar.com.au/2012/08/30/outlook-200710-borders-pain/

关于html - 我怎样才能让边框元素呈现在 Outlook 2010 中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21539683/

相关文章:

css - HTML5 视频容器比视频稍大

css - 为什么我的文本字段和文本区域宽度相同时不对齐?

html - 一个平行 div 中的 CSS 表格

javascript - 如何在使用 javascript 单击链接时有效地替换 div 内容?

HTML/CSS 网页看起来不正常

电子邮件在 Outlook 和 Hotmail 中显示为空白

java - 使用 jacob 库删除和更新 Outlook 联系人

c# - 从 SQL Server 中使用 xp_cmdshell 调用 Outlook COM 库

html - CSS-边距底部不起作用

javascript - 如何使用javascript动态删除DIV中的文本框