2016-06-21 82 views
0

嗨我試圖在使用Outlook 2010作爲客戶端和vml作爲標記語言的電子郵件活動中顯示按鈕,但我無法重現懸停效果。可以在Outlook 2010的按鈕上添加懸停?

這是我的代碼

<!--[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屬性,但它不工作。

任何人都知道這是可能的嗎?

謝謝!

回答

1

這是不可能的,因爲Outlook 2007, 2010, and 2013 do not support the :hover attribute

JavaScript和之類的東西onmouseover通常在任何電子郵件客戶端都不受支持。 VML對於在桌面Outlook中篡改諸如漸變和背景圖像等視覺效果非常有用,但我還沒有聽說過它用於交互。