HTML-код не работает на Входящие Gmail
Я могу скрыть таблицу, используя приведенный ниже код в Gmail, но он не работает на Inbox от Google. Пожалуйста, просмотрите приведенный ниже код и помогите мне скрыть эту таблицу в папке "Входящие" от Google.
<!--[if !mso]><!--><table cellspacing="0" cellpadding="0" class="mobileShow" align="center" style="width:320px; background-color:#ffffff; max-height: 0px !important; display: none !important; overflow:hidden; float:left; line-height:0px; mso-hide: all;">
<tr>
<td style="width:85px;">
<table cellspacing="0" cellpadding="0" style="width:85px; background-color:#f8f8f8;">
<tr>
<td style="width:85px; height:66px; background-color:#ffffff;"></td>
</tr>
<tr>
<td style="width:85px; height:159px; background-color:#f8f8f8;"></td>
</tr>
</table>
</td>
<td style="width:150px; background:url(http://in.bmscdn.com/events/Large/ET00041490.jpg) no-repeat center center; height:225px; background-color:#adadad; border-radius:5px; background-size: 100% 225px;"><a href="https://in.bookmyshow.com/movies/half-ticket/ET00040972?&utm_source=ReviewBMS02Aug2016&utm_medium=email&utm_campaign=HalfTicket#trailer" target="_blank" style="text-decoration:none;"><img src="http://in.bmscdn.com/mailers/images/160720bmsreview/playbtn.png" style="margin:75px auto;display:block;" height="60" border="0" width="60"></a></td>
<td style="width:85px;">
<table cellspacing="0" cellpadding="0" style="width:85px; background-color:#f8f8f8;">
<tr>
<td style="width:85px; height:66px; background-color:#ffffff;"></td>
</tr>
<tr>
<td style="width:85px; height:159px; background-color:#f8f8f8;"></td>
</tr>
</table>
</td>
</tr></table><!--<![endif]-->
2 ответа
Вы действительно не представили достаточно примеров для меня, чтобы понять, что происходит, но тот факт, что вы используете !important
предполагает, что вы не используете встроенные стили. Попробуйте, с электронной почтой труднее работать, но встроенные обычно работают лучше.
Это должно охватывать все ваши базы (как встроенный CSS):
{
display:none;
font-size:1px;
line-height:1px;
max-height:0px;
max-width:0px;
opacity:0;
overflow:hidden;
mso-hide:all;
}
Редактировать (как указано):
<table style='display:none;font-size:1px;line-height:1px;
max-height:0;max-width:0;opacity:0;overflow:hidden;
mso-hide:all;' cellspacing='0' cellpadding='0' border=0>