【问题标题】:<pre> tag ignored on Zoho Mail app for Android<pre> 标签在 Android 版 Zoho Mail 应用程序上被忽略
【发布时间】:2021-12-01 03:41:22
【问题描述】:

我构建了一个包含以下内容的 HTML 电子邮件。

<h1>
TT Railtrax Cron Services, Version 1.00
</h1>
<p>
Summary for 10/11/2021 4:00:07 AM
</p>
<pre>-------------------------------------------------------------------------------
[10/11/2021 4:00:01 AM][INFO] Starting Cron Services : TT Railtrax Cron Services, Version 1.00
[10/11/2021 4:00:05 AM][INFO] Downloaded 4 files
[10/11/2021 4:00:05 AM][INFO] Waybill discarded because of shipment type 'E' : Shipment ID: NS
[10/11/2021 4:00:05 AM][INFO] Waybill discarded because of shipment type 'E' : Shipment ID: NS
[10/11/2021 4:00:05 AM][INFO] Waybill discarded because of shipment type 'E' : Shipment ID: NS
[10/11/2021 4:00:05 AM][INFO] Waybill discarded because of shipment type 'E' : Shipment ID: NS
[10/11/2021 4:00:05 AM][INFO] Imported 0 417 files (0 records)
[10/11/2021 4:00:05 AM][INFO] Imported 0 CLM files (0 records)
[10/11/2021 4:00:07 AM][INFO] Sending 1 notification emails.
</pre>

使用我的邮件客户端 Zoho Mail,它看起来与预期一样。

但是,当我在手机上的 Zoho Mail Android 应用程序上查看它时,&lt;pre&gt; 标签似乎被完全忽略了。

还有其他人处理过这个吗? Zoho Mail 是否故意忽略移动设备上的 &lt;pre&gt; 标签,因为它们可以防止自动换行?有谁知道其他邮件客户端是否做同样的事情?

【问题讨论】:

    标签: html css email html-email zoho


    【解决方案1】:

    所以,我无法在我的 Android 设备上看到确切的标记。我最好的猜测是 Zoho Mail 正在更改 HTML。还可以看到Android版本也没有设置等宽文本。

    我的解决方法是在&lt;pre&gt; 元素中实际放置&lt;br /&gt; 标签以强制换行。尽管&lt;pre&gt; 显示了一些原始标记,但&lt;br /&gt; 标记被呈现为新行。

    它不如我的桌面好,但至少每一行都从一个新行开始。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-01-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-01-14
      相关资源
      最近更新 更多