问题描述
是否可以将表格(以 html 编码)作为电子邮件正文发送,以便收件人能够查看表格(解析和显示).
Is it possible to send a table (coded in html) as the body of an email so that the recipient is able to view the table (parsed and displayed).
例如,我希望能够将其作为电子邮件正文发送:
For example, I want to be able to send this as the body of an email:
<html>
<table>
<tr>
<td> col1 </td>
<td> col2 </td>
</tr>
</table>
</html>
以便收件人看到col1 col2
.
我在某些地方读到这是不可能的,我必须使用电子邮件服务提供的table creator,但我想确认一下是否可能.
I've read in some places that it's not possible and that I must use the table creator provided by the email service, but I'd just like to confirm to see if it's possible or not.
推荐答案
您可以发送一封带有 table
的电子邮件,其中包含数据.只需确保将其样式设置为包含数据的表格".以此为例.
You can send an email with a table
inside it containing data. Just make sure you style it as a 'table containing data'. Use this as an example.
如果您正在构建电子邮件.
<html>
<table width="600" style="border:1px solid #333">
<tr>
<td align="center">head</td>
</tr>
<tr>
<td align="center">
body
<table align="center" width="300" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #ccc;">
<tr>
<td> data </td>
<td> info </td>
</tr>
</table>
</td>
</tr>
</table>
</html>
这篇关于在电子邮件中嵌入 HTML 表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!