【问题标题】:Email table width is to small for the description电子邮件表格宽度对于描述来说太小了
【发布时间】:2014-07-06 14:10:03
【问题描述】:

我正在尝试发送带有下表的自动报告邮件,但描述字段的列宽太小,我不知道为什么不调整。

我已经试过了

   width: auto;
   width: px;
   width: &;
   width: 1px;
   white-space: nowrap;

表:

    <h1>E-48<h1>
    <table stlye='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; border-collapse: collapse;
white-space: nowrap; table-layout:fixed;'><tr>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'></td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Spinner temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Front bearing temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Pitch cabinet blade B temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Pitch cabinet blade C temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Blade A temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Blade B temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Blade C temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Rotor temperature 1</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Rotor temperature 2</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Stator temperature 1</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Stator temperature 2</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Nacelle ambient temperatur</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Rear bearing temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Nacelle temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Nacelle cabinet temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Rectifier 1 heat sink temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Rectifier 2 heat sink temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Rectifier cabinet temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Excitation heat sink temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Ambient temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Tower temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Control cabinet temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Transformer temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Inverter 1 cabinet temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Inverter 2 cabinet temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Pitch heat sink blade A temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Inverter 3 cabinet temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Pitch heat sink blade B temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Pitch heat sink blade C temperature</td>
    <td style='text-align: center; border: 1px solid lightblue; padding: 2px 10px 2px 10px; width: 100%;'>Pitch cabinet blade A temperature</td>

【问题讨论】:

  • 我没听懂你的问题??
  • 表格标题中的文本被换行(显示为 3-4 行)。

标签: html css html-table width html-email


【解决方案1】:

https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout “在“固定”布局方法下,一旦下载并分析了第一行表格,就可以渲染整个表格。与“自动”布局方法相比,这可以加快渲染时间,但后续单元格内容可能不适合列提供的宽度。” 您的第一个表格行是空的。

【讨论】:

  • 仍然无法正常工作。我还实现了从控制台到s430135357.online.de/index.html 的代码,它正在工作,但不是在邮件中
  • 来自上面的链接:h1 没有关闭没有关闭表标签 很多关闭 没有打开标签
【解决方案2】:

为您的表格添加宽度。 &lt;table width="100%"...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-01-21
    • 1970-01-01
    • 1970-01-01
    • 2013-06-07
    • 2020-07-16
    • 2017-07-07
    • 2014-05-14
    相关资源
    最近更新 更多