我已经创建了一个“加速移动网页”'除了失去“颜色”之外别无其他问题。电话号码,或任何10位+组合。
<style>
h3{
color: white;
text-shadow:1.5px 1.5px grey;
text-align: center;
background-color: #39bf4a;
padding: 5px;
}
</style>
<h3>Call us today at 555-555-5555</h3>
少于10位=好吧;
10+位=丢失字体颜色(采用背景色)
我认为它与识别电话号码有关,但是在文档中找不到任何内容可以概述这一点。
我会继续挖掘,但是如果有人遇到过这个问题并得到了答案,那么它会有所帮助!
谢谢。
答案 0 :(得分:0)
在野生动物园中,这是一个奇怪的行为,将'555-555-5555'作为一个链接!
如果您添加此样式,它将按您的意愿工作:
h3 a{
color: white;
text-shadow:1.5px 1.5px grey;
text-align: center;
background-color: #39bf4a;
padding: 5px;
text-decoration: none;
}
代码中唯一不好的(可能没错)是文本阴影。 Text-shadow的语法如下:
px px px color。