私はモバイルデバイス用のHTMLメールの最適化に取り組んでいます。私は、2列から1列のレスポンシブレイアウトを作成するための普遍的なソリューションを見つけるという任務を負っています。キャンペーンモニターによって書かれた記事を見つけました-http ://www.campaignmonitor.com/guides/mobile/sensitive/。私はそれらのマークアップを試しましたが、Outlook 2007、2010、および2013を除くほとんどのクライアントとブラウザーで機能します。参照用にマークアップを含むjsfiddleリンクを提供しました。これらのバージョンのOutlookでこれを機能させる方法はありますか?
編集:私はメールのレスポンシブ部分をOutlookで機能させようとはしていません。2つのテーブル(jsfiddleの例では左と右)を積み重ねるのではなく、並べて表示したいと思います。これは、Gmail(IE、FF、Chrome、Safari)、AOL(IE、FF、Chrome、Safari)、Yahoo(IE、FF、Chrome、Safari)、Hotmail(IE、FF、Chrome、Safari)、AppleMail4で機能します。 &5、Outlook 2003、Android 4.0、iOS 4、5、および6。私の懸念は、レンダリングエンジンが変更されたOutlook2007以降のみです。
<html>
<head>
<style>
@media all and (max-width: 590px){
*[class].responsive{ width: 320px !important; }
}
</style>
</head>
<body>
<table width="100%" style="background-color: #000;" align="center" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td height="15"></td>
</tr>
<tr>
<td width="100%">
<table width="560" style="background-color: #fff;" align="center" cellpadding="0" cellspacing="0" class="responsive">
<tbody>
<tr>
<td width="100%">
<table width="280" align="left" cellpadding="0" cellspacing="0" class="responsive">
<tbody>
<tr>
<td width="100%" height="40" style="background-color: #ececec;">
<div height="40" style="font-weight:bold; font-family:Helvetica,sans-serif; text-align:center;">Left (top)</div>
</td>
</tr>
</tbody>
</table>
<table width="280" align="left" cellpadding="0" cellspacing="0" class="responsive">
<tbody>
<tr>
<td width="100%" height="40" style="background-color: #bcbcbc;">
<div height="40" style="font-weight:bold; font-family:Helvetica,sans-serif; text-align:center;">Right (bottom)</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td height="15"></td>
</tr>
</tbody>
</table>
</body>
</html>