删除Microsoft Edge的电话号码样式 [英] Remove Microsoft Edge's phone number styling
问题描述
< span class = 电话>(123)123-1234< /跨度>
请参阅这个jsfiddle (必须使用Microsoft Edge:P打开)。
这种侵入网站的设计,并且相当令人讨厌。当然,这似乎是IE的继任者的特征:/ b / b>
如何覆盖或禁用此功能,以便我的网站用户不会看到它?
您可以通过在页面的标题中添加此元标记来消除它。 p $ p> < meta name =format-detectioncontent =telephone = no>
是一个更好的方式来关闭全局而不会出现页面膨胀......或者更好的是,默认情况下禁用此功能。
I noticed that the new Microsoft Edge browser overrides my styles when it detects phone numbers:
<span class="phone">(123)123-1234</span>
See this jsfiddle (must be opened using Microsoft Edge :P).
This sort of intrudes upon the design of the website, and is rather obnoxious. Sure seems like a trait of a successor to IE :/
How can I override or disable this so my website users will not see it?
You can get rid of it by adding this meta tag in the header of your pages.
<meta name="format-detection" content="telephone=no">
Microsoft's documentation on this tag.
Hopefully there will be a better way to turn this off globally without bloating pages... Or better yet disable this feature by default.
这篇关于删除Microsoft Edge的电话号码样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!