我正在测试我们公司的时事通讯,由于某种原因,我们页脚中的公司地址在 iPhone 上的 Mail 中自动链接。(我们不想要)我认为下面的元标记会阻止它,但它仍在发生:
<meta name="format-detection" content="address=no"/>
Apple 是否使用不同的标签?
只需将一个类添加到地址的容器元素并在您的头部样式片段中声明它。例如:
.appleLinksBlack a {color: #000000 !important; text-decoration: none;}
页脚地址如下:
<span class="appleLinksBlack">This address is being auto-linked in mac devices, but with the class the problem is solved :) </span>
在石蕊博客中查找更多资源
该站点具有所有要测试的最佳实践:
https://litmus.com/blog/update-banning-blue-links-on-ios-devices
<meta content="telephone=no" name="format-detection">