【发布时间】:2013-12-18 06:50:48
【问题描述】:
我有一个问题,Thunderbird 没有根据父宽度清除内表。
上图显示了它的外观,下图显示了它在 Thunderbird 中的外观。
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" border="0" align="center" style="max-width: 600px; width: 100%; table-layout: fixed; background: red;">
<tr>
<td valign="top">
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
<table cellpadding="0" cellspacing="0" border="0" align="left" style="width: 100px; table-layout: fixed; background: blue;">
<tr>
<td>test</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
如果我将内部表格更改为非常长的段落,则文本会按预期换行。我需要将表格简单地浮动在彼此旁边,以便它在不支持媒体查询的 Outlook 或手机中工作。
这个实时示例显示它在 Firefox 中正常工作:http://codepen.io/anon/pen/ioBdw
【问题讨论】:
标签: html css email html-email thunderbird