您好我试图在使用Outlook 2010作为客户端和vml作为标记语言的电子邮件广告系列中显示按钮,但我无法重现悬停效果。
这是我的代码
<!--[if mso]>
<v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas- microsoft-com:office:word" arcsize="13%" stroke="f" fillcolor="#6DC497" style="height:50px;v-text-anchor:middle;width:170px;" onmouseover="this.fillcolor='#6DC000'" >
<w:anchorlock />
<center style="width:100%;" >
<![endif]-->
buy it!
<!--[if mso]>
</center>
</v:roundrect>
<![endif]-->
正如您所看到的,我使用 onmouseover 属性,但它不起作用。
任何人都知道这是否可行?
谢谢!
答案 0 :(得分:1)
这是不可能的,因为Outlook 2007, 2010, and 2013 do not support the :hover
attribute。
任何电子邮件客户端都不支持JavaScript和 onmouseover 等内容。 VML对于破解桌面Outlook中的渐变和背景图像等视觉效果非常有用,但我还没有听说它被用于交互。