我用 html 为自己创建了一个简单的电子邮件签名,他的代码是:
<html>
<!-- Company logo goes here -->
<div id="far_left"
style="width: 50px;
height: 50px;
float: left;
margin-right: 10px;">
<img src="logo.png" />
</div>
<!-- Name and occupation goes here -->
<div id="top"
style="height: 25px;">
<span style="font-family: Arial, Verdana, 'Sans Serif'; font-size: 22; color: #464646;"><strong>Dean Grobler</strong>, Programmer</span>
</div>
<!-- Website link and email adress goes here -->
<div id="bottom"
style="font-family: Arial, Verdana, 'Sans Serif';
font-size: 14px;
color: #464646;
padding: 5px;
height: 25px;">
<a href="http://www.deangrobler.com" style="text-decoration: none; color: #84d5f6">www.deangrobler.com</a> |
<a href="mailto:[email protected] /cdn-cgi/l/email-protection" style="text-decoration: none; color: #84d5f6">[email protected] /cdn-cgi/l/email-protection</a>
</div>
在雷鸟和我的浏览器中它显示正确:
但遗憾的是,在 Outlook 2010 中却没有:
如果它使用与 IE 使用的渲染引擎相同的渲染引擎(我敢打赌,它确实如此),我对这种情况的发生并不感到太惊讶。
有任何想法吗?
电子邮件客户端呈现 html 的方式与浏览器不同。创建 html 电子邮件时,最好使用表格。我知道这违背了所有现代网页设计,但它们得到了更多电子邮件客户端的支持。以下是 css 属性及其支持的客户端的链接。
http://www.campaignmonitor.com/css/ http://www.campaignmonitor.com/css/
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)