html - iPhone 电子邮件客户端中 html 表中的蓝色下划线

标签 html ios css iphone

我在 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/

相关文章:

android - Phonegap - cordova 在 Android 和 iOS 设备上缓慢且缓慢

html - 如何使 <a> 的填充高度为 <li>.table-cell 的 100%?

html - 如何将两行较小的元素与较大的元素对齐?

html - 表单不会缩小到我的 iPhone 屏幕的宽度

html - Materialise 中的标签覆盖问题

ios - 从服务器快速加载数据iOS

javascript - 用 IE 兼容的脚本替换 setAttribute

ios - 如何将 UITextField 的值转换为 UITableViewCell 中的 NSString?

javascript - 如何禁用向左滚动?

html - 位置与 float 不兼容