【发布时间】:2013-05-26 07:33:50
【问题描述】:
我的朋友开发人员在使用 html 电子邮件时遇到了一些问题。我可以在我的邮件应用程序中看到的一个大问题是他没有放入 css 的大边距顶部和两个小边距(左右),html 边距:0;
你有什么建议吗?
非常感谢。
<html>
<head>
<style type="text/css">
html,body{margin:0;padding:0; background-color:#f6f6f6}
table { width: 100%; height: 100%; }
span{font-family:Helvetica, Arial, sans-serif; line-height:1.7em;}
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento senza titolo</title>
</head>
<body>
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#f6f6f6">
<tr height="95px" valign="middle" >
<td width="100%" align="left" style="padding:15px"><img src="logo_email.png" width="154" height="46" alt="good" /></td>
</tr>
<tr bgcolor="#eeeeee" height="95px" valign="middle">
<td width="100%" colspan="2" style="padding:15px"><span style="font-size:18px;color:#414042">Thank you for subscribe our newsletter.</span><br /><span style="font-size:13px;color:#414042">The Team</span></td>
</tr>
<tr height="auto" valign="top">
<td width="100%" colspan="2" style="padding:15px"><span style="font-size:10px;color:#6d6e71">You are receiving Activity Notifications emails.</span></td>
</tr>
</table>
</body>
</html>
【问题讨论】:
-
我的名字是 Nostradamus,我可以预测您的朋友会遇到这个问题,因为他错过了某个元素的边距或填充。这个元素是什么我不知道,因为你没有给我提供任何代码。我的建议是请查看:stackoverflow.com/questions/how-to-ask 有关如何提出实际上可以正确回答的问题的详细信息。谢谢。
-
对不起,我忘记发布代码了!现在完成了..
标签: html css html-email email-client