我有一封电子邮件我正在撰写使用基于表格的布局,这些布局在发送到电子邮件帐户时,会在Android版Gmail的“移动优化”较小表单中呈现行,但在iOS版Gmail上呈现为全角(因此为小文字)。iOS上的Gmail和Android上的Gmail呈现不同
这里有什么想法可能会发生什么?我知道这不是最明确的问题,我不能将其缩小到某个导致差异的html集合。谷歌搜索也没有产生明显的结果。
谢谢!
<table width=100% cellspacing="0" cellpadding="0" style="" class="">
<tr width="100%">
<td width="100%" style="
padding: 10px;
box-shadow: 0 2px 0 0 #f1f1f1;
background-color: #ffffff;
" class="">
<table cellspacing="0" cellpadding="0" width='100%' style='' align='' class="">
<tr style='' class=''>
<td width='' height='' style='
width: 150px;
min-width: 150px;
line-height: 0;
' align='' valign='top' class='list-card__header' colspan='1'>
<table cellspacing="0" cellpadding="0" width='100%' style='' align='' class="">
<tr style='' class=''>
<td width='' height='' style='
width: 150px;
max-width: 150px;
height: 75px;
line-height: 0;
overflow: hidden;
background-color:#dedede' align='center' valign='middle' class='list-card__image-wrapper' colspan='1'>
<img class="list-card__image" src="https://cdn.evbstatic.com/s3-build/perm_001/f8c5fa/django/images/discovery/default_logos/4.png" style="
overflow: hidden;
max-width: 150px;
height: 75px;
" border="0" />
</td>
</tr>
</table>
</td>
<td width='*' height='' style='
padding-left: 15px;
min-width: 150px;
' align='left' valign='top' class='list-card__body' colspan='1'>
<div class="list-card__date" style="
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: #343434;
font-size: 12px;
line-height: 20px;
height: 20px;
text-transform: uppercase;
letter-spacing: 1px;
padding-top: 5px;
min-width: 150px;
width: 150px;
">
Sat, Dec 31
</div>
<div class="list-card__title" style="
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
height: 36px;
max-height: 36px;
color: #333333;
font-size: 15px;
font-weight: 700;
line-height: 18px;
letter-spacing: 0;
min-width: 150px;
">
Hunger Plus, Inc.
</div>
<div style="
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
text-overflow: ellipsis;
overflow: hidden;
font-size: 12px;
line-height: 20px;
height: 20px;
color: #8c8c8c;
min-width: 150px;
width: 150px;
height: 20px;
max-height: 20px;
">
Hunger Plus, Inc.
</div>
</td>
</tr>
</table>
</td>
</tr>
我有很多想法,可能会出错:)你可以发布你尝试过的代码的一个小例子吗? –