我在 iPhone 电子邮件客户端中收到此代码的带下划线的蓝色链接:
<td style="font-family:Verdana, Geneva, sans-serif; font-size: 13px; background-color: #f3f3f3; font-weight: bold;">2:20</td>
如何删除它?
更新:
我有以下 header ,但问题仍然存在:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no">
<meta name="format-detection" content="date=no">
</head>
最佳答案
IOS 自动链接一些看起来像日期和时间、地址和电话号码的文本。这就是这里发生的事情。
Here is an answer element
Here are more answer elements
它说你可以添加元标记(不幸的是不能在邮件客户端上工作,但在 Safari 上工作):
<meta content="date=no" name="format-detection" />
<meta content="telephone=no" name="format-detection" />
<meta content="address=no" name="format-detection" />
您可以添加head
标签(未测试)。
<style>
a[href^=date]{ color:#F00; text-decoration:none;}
</style>
你可以在 span 中用 head 和 inline 样式包装你的文本
<style>
.appleLinksBlack a {color: #000000 !important; text-decoration: none;}
</style>
<span class=”appleLinksBlack”>2:20</span>
如果这些都不起作用,您可以在文本中添加此 HTML 特殊字符:
,这是一个零宽度空间,避免 ios 自动链接内容
关于html - iPhone 电子邮件客户端中 html 表中的蓝色下划线,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29914935/