问题:苹果自带浏览器打开页面,手机号会被变成黑色的文字,而不是预先设定的颜色(第一张图是设计稿样式,第二图是变色后的异常样式)
办法:增加<meta name="format-detection" content="telephone=no" />禁止识别手机号
<meta name="format-detection" content="telephone=no" />
如果后期还想实现点击拨打电话没直接将手机号用a标签嵌套,使用tel功能即可,也可以解决这个变色问题
问题:苹果自带浏览器打开页面,手机号会被变成黑色的文字,而不是预先设定的颜色(第一张图是设计稿样式,第二图是变色后的异常样式)
办法:增加<meta name="format-detection" content="telephone=no" />禁止识别手机号
<meta name="format-detection" content="telephone=no" />
如果后期还想实现点击拨打电话没直接将手机号用a标签嵌套,使用tel功能即可,也可以解决这个变色问题