简体   繁体   English

Gmail 应用程序在超链接下划线上显示单词之间的间隙

[英]Gmail app showing gaps between words on hyperlink underline

I'm building email templates in Marketo.我正在 Marketo 中构建 email 模板。 In the Gmail app for iOS, hyperlink underlines appear broken between hyperlinked words.在 Gmail 的 iOS 应用程序中,超链接词之间的超链接下划线出现断线。 I'd like the underline to be a solid line with no gaps.我希望下划线是一条没有间隙的实线。

Screenshot:截屏:

There is nothing particularly unique about how I have coded the anchor tags:我对锚标记的编码方式没有什么特别之处:

 <a href="${linkUrl}" style="display: inline-block;text-decoration: underline;">${linkText}</a>

I'm not experiencing this in any other email clients, and I haven't found anyone else seeking help on this issue.我在任何其他 email 客户中都没有遇到过这种情况,而且我还没有发现任何其他人在这个问题上寻求帮助。 One other funny thing is that when you click the link in gmail, the gaps disappear.另一件有趣的事情是,当您单击 gmail 中的链接时,空白消失了。

Has anyone experienced anything like this?有没有人经历过这样的事情? Any ideas what could be going on?任何想法可能会发生什么?

I've been having the same issue with Marketo doing this until today.直到今天,我一直在与 Marketo 做同样的问题。 I checked the HTML of the email & noticed that the words were on separate lines instead of just having a space between them.我检查了 email 的 HTML 并注意到这些词在不同的行上,而不仅仅是在它们之间有一个空格。 I replaced the space with a non-breaking space &nbsp;我用不间断的空格替换了空格&nbsp; and that seemed to fix the issue.这似乎解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM