我有一封電子郵件我正在撰寫使用基於表格的佈局,這些佈局在發送到電子郵件帳戶時,會在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>
我有很多想法,可能會出錯:)你可以發佈你嘗試過的代碼的一個小例子嗎? –