Rya*_*yan 14 html email html-email
因为我是使用内联使用<span>或<p>标签进行造型,所以我可能只是去真正的旧学校并使用<br><br>打破段落而不是<p>每次关闭并重新打开标签?
例如,这里是我目前拥有的代码片段,它只是如此多余.我知道这是必须内联编码的本质,但似乎我可以通过这样做来减少一些噪音<br><br>
<p style="font-size: small; font-family:Tahoma, Geneva, sans-serif">Selection of the 200 New & Recently updated companies over the last month. Click on the company name for up-to-date business information.</p>
<p style="font-size: small; font-family:Tahoma, Geneva, sans-serif">Company Name, FL provider of Category was updated on 2/12/2013</p>
<p style="font-size: small; font-family:Tahoma, Geneva, sans-serif">Company Name, TX provider of Category was updated on 2/13/2013</p>
<p style="font-size: small; font-family:Tahoma, Geneva, sans-serif">Company Name, AK provider of Category was updated on 2/15/2013</p>
Run Code Online (Sandbox Code Playgroud)
在适用的情况下,将其中的一部分转出是否有不利之处<br><br>?电子邮件客户端支持或类似的东西?
nia*_*shi 11
随意使用换行标记,你已经确定了以这种方式减少标记的潜力,并且这样做没有任何缺点.每个电子邮件客户端和Web客户端都支持它们,并且它们比使用段落标记上的边距更可靠,因为并非所有系统都能全面支持边距.
参考:http://www.campaignmonitor.com/css/
我<br>在所有文本之间使用双标签.这是电子邮件最一致的选择.
您需要将它与 文本的顶部和底部配对,因为它可以在某些客户端(我认为Outlook)压缩空行.这是一个例子:
<td>
<br>
The no break space is needed above and below the text where it meets the table cell.
<br><br>
double br's between paragraphs are the best way to do it.
<br><br>
You need 1 no break space per line at the bottom (and top) so that Outlook doesn't remove the text row.
<br> <br>
</td>
Run Code Online (Sandbox Code Playgroud)
这是最快的方法,但限制您的行高倍数.另一种选择是使用填充:
<td style="padding-top:15px; padding-bottom:30px;">
The no break space is needed above and below the text where it meets the table cell.
<br><br>
double br's between paragraphs are the best way to do it.
<br><br>
You need 1 no break space per line at the bottom (and top) so that Outlook doesn't remove the text row.
</td>
Run Code Online (Sandbox Code Playgroud)
假设行高设置为15px,这两种方法都会产生相同的结果,并在所有主要的电子邮件客户端中得到广泛支持.
| 归档时间: |
|
| 查看次数: |
19766 次 |
| 最近记录: |