html - 删除电子邮件中跨度和段落之间的空格

标签 html css html-email

我正在尝试为电子邮件编写代码,这就是我使用表格和内联样式的原因。

我想删除 spanp 之间的空格。我不知道为什么它首先出现在那里。

<tr>
   <td>
      <span valign="top" bgcolor="#fff" class="content" style="  font-family: 'Lato',Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight:700; font-size: 19px; line-height:35px; color: #654308;> Header Goes Here </span>
      <p font-family: 'Lato',Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight:200; font-size: 16px; color: #654308;>Lorem ipsum dolor sit amet consectetur incididunt ut labore et dolore magna aliqua elit sed do eiusmod. </p>
   </td>
</tr>

最佳答案

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
<table>
	<tr>
   <td>
      <span valign="top" bgcolor="#fff" class="content" style="  font-family: 'Lato',Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight:700; font-size: 19px; line-height:35px; color: #654308;"> Header Goes Here </span>
      <p style="margin:0px; font-family: 'Lato',Gotham, 'Helvetica Neue', Helvetica, Arial, sans-serif; font-weight:200; font-size: 16px; color: #654308;">Lorem ipsum dolor sit amet consectetur incididunt ut labore et dolore magna aliqua elit sed do eiusmod. </p>
   </td>
</tr>
</table>
</body>
</html>

关于html - 删除电子邮件中跨度和段落之间的空格,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39253226/

相关文章:

javascript - 使用 HTML 和 CSS 阻止 UI

asp.net - GridView Dropdownlist CSS 首字母应为黑色,其余内容应为绿色

html - 文本/标题中的内联列表

c# - 如何将 "paragraph breaks"添加到我的 html 电子邮件中?

javascript - 仅在此形式中使用 javascript

javascript - 如何将名称属性添加到动态生成的 <tr>

css - Seam 2.1 问题 : losing theme

css - 在电子邮件模板中使用绝对/相对位置

google-analytics - 使用Google Analytics(分析)跟踪电子邮件的打开率

html - CSS:在 flex-wrapped 按钮中居中文本