看起来 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;">
3) 尝试将line-height 添加到包含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>
更多尝试
4) 将width="700" 属性添加到img 标记中(也可以将height 加入),并且只在style 属性中指定display:block;:
<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">
最后一个...
6) 刚刚注意到您设置了mc:allowdesigner="" 和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;">
希望其中之一对您有用。