我正在尝试创建一个 HTML 电子邮件,这就是我使用表格的原因。我有一些开头的文字,后面跟着一些要点。但是,开始文本被推到右侧,而不是在项目符号点上方排列。
这是一个简单的小提琴:http: //jsfiddle.net/wWxYg/
我的 HTML:
<table bordercolor="#FF0000" style="color:#585A63; font-family:Arial,Helvetica, sans-serif; background:#FFFFFF;width:600px;" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15" align="left" valign="top">
<img src="images/spacer.gif" width="15" height="2" border="0" alt=" " style="display: block;" />
</td>
<td width="288" align="left" valign="top" style="color: #585A63; font-family: Arial, Helvetica, sans-serif; font-size: 13px; background: #FFFFFF; width: 288px;">
<p style="font-size: 22px; font-weight: bold; font-family: Arial, Helvetica, sans-serif; color:#0078ae; margin: 10px 0px 10px 0px">
Title Section Goes Here
</p>
<p style="margin: 1em 0; color:#585A63; font-family:Arial, Helvetica, sans-serif; font-size:13px; font-weight: normal;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non massa dolor. Integer magna eros, vulputate sit amet rhoncus sodales, euismod sit amet eros.
</p>
<p style="margin: 13px 0 13px; color: #585A63;">
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris non massa dolor. Integer magna eros, vulputate sit amet rhoncus sodales, euismod sit amet eros.
</p>
<p style="margin: 13px 0 13px; color: #585A63;">
Sub Title Goes Here:<br /><br />
</p>
</td>
</tr>
<tr>
<td>
<table width="260" style="color: #585A63; font-family: Arial, Helvetica, sans-serif; font-size: 13px; background: #FFFFFF; width: 260px;">
<tr>
<td width="5" height="15" valign="top">•</td>
<td width="250" height="15" valign="top">Interesting point number 1</td>
</tr>
<tr><td> </td></tr>
<tr>
<td width="5" height="15" valign="top">•</td>
<td width="250" height="15" valign="top">Interesting point number 2</td>
</tr>
<tr><td> </td></tr>
<tr>
<td width="5" height="15" valign="top">•</td>
<td width="250" height="15" valign="top">Interesting point number 3</td>
</tr>
<tr><td> </td></tr>
<tr>
<td width="5" height="15" valign="top">•</td>
<td width="250" height="15" valign="top">Interesting point number 4</td>
</tr>
</table>
</td>
</tr>
</table>