【发布时间】:2014-12-30 01:05:49
【问题描述】:
我创建了一个响应式 HTML 电子邮件,它可以在许多不同的平台上正常工作,但在 iPhone 上查看时除外。
iOS 似乎正在识别日期 + 时间并将蓝色/下划线应用于内容。在过去的几个小时里,我一直在研究这个问题,但目前处于死胡同。
我已尝试关闭电话号码的格式检测:
<meta name="format-detection" content="telephone=no">
我也尝试过在其中包含 date 和 address:
<meta name="format-detection" content="telephone=no, date=no, address=no">
我尝试将!important 添加到元素的样式中,但仍然没有成功:
<h4 style="font-size: 16px;color: #FFFFFF !important; text-decoration:none !important;font-family: Arial;font-weight: bold;padding: 0;margin: 0;text-align: left;line-height: 1.3;word-break: normal;" class="appleLinksWhite">
Thursday 20th November
</h4>
<p style="color: #FFFFFF !important; text-decoration:none !important;margin: 0;margin-bottom: 0;font-family: Arial;font-weight: normal;padding: 0;text-align: left;line-height: 19px;font-size: 14px !important;" class="appleLinksWhite">
10:45am until 12:30pm,<br>The Feast, Suffolk Food Hall, Ipswich
</p>
我尝试按照推荐的here 向元素.appleLinksWhite 添加一个类,但仍然没有成功。
我还尝试使用颜色和文本装饰集将内部内容包装在 <span> 中,但这仍然不起作用。
我无法尝试其他事情。如何禁用此行为?
编辑* 值得注意的是,该问题仅出现在 iPhone 4/5 上。 iPhone 6/Plus 很好。
【问题讨论】:
标签: html ios iphone email html-email