删除电子邮件中电话号码的蓝色超链接

问题描述:

类似于此问题,我使用以下代码尝试了建议,但它不起作用:

I tried the suggestion using following code but it does not work:

[href^="tel"]{
    color:inherit;
}

我的问题是我将网页从我的网站复制到电子邮件(每周新闻)中,而gmail将其转换为蓝色超链接.即使在添加[href ^ ="tel"]之前,它在我的网站上也没有显示为蓝色.我在想没有解决办法,因为它是通过Google进行的?

My problem is I am copying a page from my website into an email (weekly newsletter), and gmail is converting it to a blue hyperlink. Even before adding a[href^="tel"], it did not show up as blue on my website. I'm thinking there is no fix since it is happening via google?

如果这是在gmail应用程序上发生的,则可以使用锚标记,并为其赋予颜色而没有 href

if this is happening on gmail app, you can use an anchor tag and give it a color without the href

<a style="color:#000001; text-decoration:none;">iOS Fix</a>

如果这是在iOS的通用电子邮件客户端上发生的,则可以在标头中使用一个类,并将该类分配给td

if this is happening on the generic email clients for iOS you can use a class in the header and assign the class to the td

<style>
.appleLinkFix a{color:#000000; text-decoration:none;}
</style>

接下来,您可以将类添加到iOS自己创建链接的td中.

next you can add the class to the td which iOS will create the link by itself.

<td class="appleLinkFix">48 Pirrama Rd, Pyrmont NSW 2009</td>

希望可以帮助您回答问题.

Hope that helps answer your question.