简体   繁体   English

当Outlook用户在IE浏览器中查看时,HTML电子邮件无法正确呈现

[英]HTML email not rendering correctly when Outlook user views in IE browser

I've built a responsive email using conditional statements for Outlook (making it not responsive in Outlook). 我已经使用Outlook的条件语句构建了响应式电子邮件(使其在Outlook中不响应)。 It is looking fine in all email clients but when an Outlook user chooses to view the email in a browser (Outlook auto opens IE, I have IE10), it appears to be zoomed in at like 50000%. 在所有电子邮件客户端中,它看起来都不错,但是当Outlook用户选择在浏览器中查看电子邮件时(Outlook自动打开IE,我有IE10),它似乎被放大了50000%。 I build responsive emails all the time and have never experienced this issue. 我一直在建立响应式电子邮件,但从未遇到过此问题。 The only difference with this one is that most of the content is dynamically pulled from a DB. 唯一的区别是大多数内容是从数据库动态提取的。 Does anyone have any ideas why this is happening? 有谁知道为什么会这样吗? Here is the doctype and head code from the email if it helps: 如果有帮助,这是电子邮件中的文档类型和标题代码:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="initial-scale=1.0; maximum-scale=1.0; user-scalable=0" />
<title>Untitled</title>

    <!--[if gte mso 9]>
        <style type="text/css">
            .noOutlook { display:none; }
            #outlook {display: block;}
        </style>
    <![endif]-->
</head>

我不确定是什么原因导致的,但是使用IE8及更高版本的条件语句,我能够设置宽度并解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM