gpt4 book ai didi

templates - MailChimp 预览覆盖链接样式

转载 作者:行者123 更新时间:2023-12-03 15:00:17 27 4
gpt4 key购买 nike

我在为 MailChimp 创建自定义模板时遇到了一个问题 - 在编辑电子邮件内容中的链接时,MailChimp 会覆盖它们的样式。这是模板的一部分,

<a mc:edit="cta_link" target="_blank" href="*|CUSTOM_URL|*" style="font-family: 'Helvetica', 'Arial', sans-serif !important; font-size: 11px; color: #000000 !important; border-bottom: 1px solid #000000 !important; text-transform: uppercase !important; padding-bottom: 1px;">Read more</a>

正如您所看到的,我还在一些样式中添加了 !important 规则,以尝试避免任何覆盖,但没有任何效果。我在静态示例 href src 和 MailChimp 自定义 url 变量之间切换,似乎没有任何区别。
更新链接后,字体更改为默认的 Times 字体。
我缺少什么吗?

最佳答案

4 年后,它仍在发生。

您应用于链接元素的样式会被全局链接样式覆盖。

我的解决方案:在链接中插入一个 span 标签。

<a mc:edit="cta_link" target="_blank" href="*|CUSTOM_URL|*"><span style="font-family: 'Helvetica', 'Arial', sans-serif !important; font-size: 11px; color: #000000 !important; border-bottom: 1px solid #000000 !important; text-transform: uppercase !important; padding-bottom: 1px;">Read more</a>

关于templates - MailChimp 预览覆盖链接样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34394385/

27 4 0