0

我需要以可呈现的格式以表格的形式向用户发送数据。我有执行此操作的代码,但无法找到为什么它没有显示在 Outlook 桌面应用程序上。我该如何处理它以确保它也适用于 Outlook 应用程序?

我已经尝试过使用十六进制代码和黑色灰色红色等颜色,但没有任何效果。

table1.get_html_string(attributes={”border-top”:”2px solid #000000"})
print(table1)
<table frame="box" rules="all" border-top="2px solid #000000">
    <tr>

此表在通过邮件发送时以表格格式打印但跳过边框,仅在 Outlook 桌面应用程序上。通过浏览器打开时在 gmail 和 Outlook 上工作正常

4

1 回答 1

1

border-top在 Outlook 中工作得很好。你的 css 无效。试试这个:

<table style="border-top: 2px solid #000000;">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>

祝你好运。

于 2019-04-15T18:13:27.777 回答