【发布时间】:2020-06-15 17:52:39
【问题描述】:
我有这个丑陋的代码,用于在 MS Outlook 的 HTML 电子邮件中创建一个按钮:
<!--[if mso]>
<v:rect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="https://www.website.com" target="_blank" style="height:50px;width:100%;v-text-anchor:middle;" stroke="f" fillcolor="#009CDE">
<w:anchorlock/>
<center>Watch the brand commercial</center>
</v:rect>
<![endif]-->
当我使用 600px 的宽度时,它确实有效。但是当我在 MS Outlook 中调整屏幕大小时,它没有响应。
但如果我使用 100% 的 with ,它就会中断。那么是否有可能在v:rect 元素上使用100% 的宽度?
【问题讨论】:
标签: html outlook html-email mailchimp email-templates