Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/88.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/email/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 有条件地以Outlook 2007/2010/2013为目标,但不以Outlook.com为目标_Html_Email_Outlook_Outlook.com - Fatal编程技术网

Html 有条件地以Outlook 2007/2010/2013为目标,但不以Outlook.com为目标

Html 有条件地以Outlook 2007/2010/2013为目标,但不以Outlook.com为目标,html,email,outlook,outlook.com,Html,Email,Outlook,Outlook.com,我知道我们可以有条件地针对Outlook'07-'13,但Outlook.com似乎也符合我的条件 <!--[if !mso]><!--><br /><!--<![endif]--> 对于与Outlook.com不匹配的语句,是否有更好的代码?没有真正的方法来实现这一点;可能需要查看HTML以找出导致这种情况的原因以及其他方法 对不起,我帮不了你了。是的。为什么要用“我不知道”来回答 无论如何,Outlook.com会在你所有的类前面加

我知道我们可以有条件地针对Outlook'07-'13,但Outlook.com似乎也符合我的条件

<!--[if !mso]><!--><br /><!--<![endif]-->


对于与Outlook.com不匹配的语句,是否有更好的代码?

没有真正的方法来实现这一点;可能需要查看HTML以找出导致这种情况的原因以及其他方法


对不起,我帮不了你了。

是的。为什么要用“我不知道”来回答

无论如何,Outlook.com会在你所有的类前面加上ecx。我喜欢做的是使td 0高度(
height=“0”style=“font size:0px;line height:0px;”“
),添加类
class=“outlookthing”
,并在
中使用
td[class=“ecxoutlookthing]”修正0高度({font size:XXpx;line height:XXpx;height:XXpx;}
如何

                <xsl:comment>
                    <![CDATA[[if  mso 12]>Contents for 2007<![endif]]]>
                </xsl:comment>
                <xsl:comment>
                    <![CDATA[[if  mso 14]>Contents for 2010<![endif]]]>
                </xsl:comment>
                <xsl:comment>
                    <![CDATA[[if  mso 15]>Contents for 2013<![endif]]]>
                </xsl:comment>

2007年目录
2010年目录
2013年目录

我忘了提到outlook.com会剥离注释以及打开/关闭条件注释的内容,而大多数客户端不会这样做。因此,我提出了解决方案。