【发布时间】: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