何かが気に入らないため、Gmail は style 属性を取り除いているようです。
試してみるいくつかのこと:
1) スタイル宣言の先頭にある余分なスペースを削除します。
<img src="" id="headerImage campaign-icon" mc:label="header_image"
mc:edit="header_image" mc:allowdesigner="" mc:allowtext=""
style="width:700px; display:block;">
2) 指定!important
: (参照: http://www.campaignmonitor.com/blog/post/3652/gmail-strips-out-inline-css )
<img src="" id="headerImage campaign-icon" mc:label="header_image"
mc:edit="header_image" mc:allowdesigner="" mc:allowtext=""
style="width:700px; display:block !important;">
line-height
3)含まれている要素に追加してみてくださいtd
: (参照: http://www.webdevdoor.com/html-css/html-email-development-tips/ )
<td style="line-height:0px;">
<img src="" id="headerImage campaign-icon" mc:label="header_image"
mc:edit="header_image" mc:allowdesigner="" mc:allowtext=""
style="width:700px; display:block;"></td>
もう1つ試す
4)タグに属性を追加width="700"
し(おそらくheight
同様に投げ込みます)、属性でのみ指定します:img
display:block;
style
<img src="" id="headerImage campaign-icon" mc:label="header_image"
mc:edit="header_image" mc:allowdesigner="" mc:allowtext=""
width="700" height="665" style="display:block;">
ここに別のものがあります
5) HTML5 doctype は、レンダリングの問題を引き起こす可能性があります。代わりにこれを使用してみてください:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
最後の一つ...
mc:allowdesigner=""
6) と を設定していることに気付きました。これら 2 つからmc:allowtext=""
を削除するとどうなります=""
か?
<img src="" id="headerImage campaign-icon" mc:label="header_image"
mc:edit="header_image" mc:allowdesigner mc:allowtext
style="width:700px; display:block;">
うまくいけば、これらのいずれかがあなたのために働くでしょう.