HTML 电子邮件:填充在 gmail 中不起作用

问题描述 投票:0回答:2
html css html-table
2个回答
0
投票

尝试使用

line-height:35px

<table>
  <tr>
    <td valign="top" align="center">
      <span style="color: black; text-align: center; text-transform: uppercase; font-weight:100 !important; letter-spacing: 8px; font-size: 35px;font-family: 'open sans', arial, sans-serif; line-height:35px;">TIECON</span>
    </td>
  </tr>

  <tr>
    <td valign="top" align="center">
      <span style="color: black; text-align: center; text-transform: uppercase; font-weight:100 !important; letter-spacing: 8px; font-size: 35px;font-family: 'open sans', arial, sans-serif;line-height:35px;">AHMEDABAD</span>
    </td>
  </tr>

  <tr>
    <td valign="top" align="center">
      <span style="color: black; text-align: center; text-transform: uppercase; font-weight:100 !important; letter-spacing: 8px; font-size: 35px;font-family: 'open sans', arial, sans-serif;line-height:35px;">2016</span>
    </td>
  </tr>
</table>


0
投票
Gmail 中的填充仅适用于 td 元素。因此,只需为 table 元素内的 td 元素指定填充即可。

© www.soinside.com 2019 - 2024. All rights reserved.