我使用 fontsquirrel 和 google 的字体,它们在桌面浏览器(IE、safari、chrome、firefox)上运行得非常好。
但是在移动 safari 中,特别是 ipad2 和 iphone4,字体出现了两次,意思是,它显示了 2 次相同的单词,就好像它是两次相同的文本一样!问题出在H1上。
我尝试使用 sans serif 字体,结果是一样的...
我试图改变字体粗细、字体大小等,但它没有改变任何东西。

body {
color:#FFF;
font-family: 'Raleway', sans-serif;
font-weight: normal;
/*font-family: 'Open Sans', sans-serif;*/
min-width:960px;
top:0;
left:0;
position:absolute;
height:100%;
width:100%;
margin:0;
background-size:cover;
}

.ie body {
filter: dropshadow(color=#000000, offx=0, offy=1);  }

h1 {
font-size:88px;
text-align:center;
padding-top:30px;
font-weight:700;
font-family:'quicksandregular',arial, sans-serif;
}

@media screen and (max-width:768px){  /* tablettes */
body {
min-width: initial !important;
font-weight: normal; /* */
font-size: 68px; /* */
}

.wrapper{
    width:100%;
}
.styled div {
margin-bottom:10px;
}}

@media screen and(max-width:420px){ /* tel */
body{
    font-weight: normal; /* */
    font-size: 68px; /* */
}
h1{

float:initial;
text-align: center;
margin-left:0px;
margin-bottom:0px;
}
#header {
    width: 100%;
}
.styled div {
  margin-bottom:10px;
  font-size: 40px;
  font-weight: normal;
  text-align: center;
  width:80px;
  border-radius:80px;
  height:80px;
}
#Content h2 {
margin: 0px 0px 0px 0px;
padding: 0px;
text-align: center;
font-size: 29px;
font-weight: 300;
}

非常感谢您的帮助 !!
莱蒂蒂亚

最佳答案

浏览器正在应用粗体字体,这会导致问题,因为没有粗体流沙。您所要做的就是为出现两次的文本元素设置 font-weight:normal;

您的问题在这里详细讨论:

http://www.fontsquirrel.com/forum/discussion/277/webfonts-showing-up-twice/p1

10-07 19:59
查看更多