想知道是否有其他代码可供在HTML时事通讯中使用。
我会使用单元格边距或边距,但我是HTML/CSS的新手,我找不到一个同时影响主标题行和它下面的副标题的更改。作为一封电子邮件,我很犹豫是否去摆弄CSS来获得它--因为我不知道电子邮件客户不喜欢CSS而不是内联标记的方式。
对于上下文,我使用的模板是来自Mailchimp的静音主题:
<!-- language: lang-html -->
<table cellspacing="0" cellpadding="0" border="0" align="center" width="626">
<tbody>
<tr>
<td valign="middle" bgcolor="#546781" height="97" background="images/header-bg.jpg" style="vertical-align: middle;">
<table cellspacing="0" cellpadding="0" border="0" align="center" width="555" height="97">
<tbody>
<tr>
<td valign="middle" width="160" style="vertical-align:middle; text-align: left;">
<img width="70" height="70" src="http://dl.dropbox.com/…….png" style="margin:0; margin-top: 4px; display: block;" alt="" />
</td>
<td valign="middle" style="vertical-align: middle; text-align: left;">
<h1 class="title" style="margin:0; padding:0; font-size:30px; font-weight: normal; color: #192c45 !important;">
<singleline label="Title"><span>Title of Report</span></singleline>
</h1>
<h1 class="title" style="margin:0; padding:0; font-size:15px; font-weight: normal; color: #192c45 !important;">
<singleline label="Title"><span>Small Subhead</span></singleline>
</h1>
</td>
<td width="55" valign="middle" style="vertical-align:middle; text-align: center;">
<h2 class="date" style="margin:0; padding:0; font-size:13px; font-weight: normal; color: #192c45 !important; text-transform: uppercase; font-weight: bold; line-height:1;">
<currentmonthname />December
</h2>
<h2 class="date" style="margin:0; padding:0; font-size:23px; font-weight: normal; color: #192c45 !important; font-weight: bold;">
<currentyear />2011
</h2>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
可以通过here查看整个网页形式的电子邮件
发布于 2011-12-15 14:50:02
还有其他空格字符的代码,这些代码工作得很好,但字符本身是遗留字符。它们之所以被包含在字符集中,只是因为它们存在于现有字符数据中,而不是用于新文档中。对于字体和浏览器版本的某些组合,它们可能会导致显示无法表示的字符的通用字形。详情请查看我的page about Unicode spaces。
因此,使用CSS更安全,并且允许您指定所需的空格量,而不仅仅是固定宽度的空格的特定宽度。在我看来,如果您只想在h2元素周围添加间距,那么在这些元素上设置padding (更改已有的padding: 0设置的值)应该没问题。
发布于 2011-12-15 13:12:45
不确定这是否是您所指的,但这是您可以使用的HTML实体列表:
List of XML and HTML character entity references
使用'Name‘列中的内容,您可以将它们包装在一个&
和;
中
例如,
、 
等。
发布于 2018-02-02 03:52:09
那么普通的编码空白字符呢?
 
https://stackoverflow.com/questions/8515365
复制相似问题