【问题标题】:Disable address formatting in iOS email禁用 iOS 电子邮件中的地址格式
【发布时间】:2013-08-22 17:12:33
【问题描述】:

我正在测试我们公司的时事通讯,由于某种原因,我们页脚中的公司地址在 iPhone 上的 Mail 中自动链接。 (我们不想要)我认为下面的元标记会阻止它,但它仍在发生:

<meta name="format-detection" content="address=no"/>

Apple 是否使用不同的标签?

【问题讨论】:

标签: html css meta


【解决方案1】:

只需在地址的容器元素中添加一个类,并在您的头部样式 sn-p 中声明它。例如:

.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>

litmus blog中查找更多资源

【讨论】:

    【解决方案2】:

    这个网站有所有可以测试的最佳实践:

    https://litmus.com/blog/update-banning-blue-links-on-ios-devices

    <meta content="telephone=no" name="format-detection">
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-09-09
      • 1970-01-01
      • 1970-01-01
      • 2017-02-01
      • 2018-09-07
      相关资源
      最近更新 更多