【发布时间】:2011-07-13 05:37:09
【问题描述】:
我正在使用 css 字体导入属性作为自定义字体,以便在我的网站中使用。字体是“LeagueGothic.otf”和“DroidSans.ttf”。除了opera(v-11.50),所有浏览器都表现完美。字体不流畅。他们已经打破了年龄,这看起来很丑陋。 cufon 完美,但我不想使用它。有什么解决办法吗?多谢。你可以看看我的 css 代码风格 -
@font-face {
font-family: DroidSans;
src: url(DroidSans.ttf);
}
@font-face {
font-family: League Gothic;
src: url(LeagueGothic.otf);
}
body { color: #333333; font-family:'DroidSans',Arial; font-size:14px; line-height:20px;}
h1, h2, h3, h4, h5, h6, a{font-family: "League Gothic","Arial Narrow","Arial",sans-serif; font-weight: lighter; text-transform: uppercase;}
【问题讨论】:
-
这是一个重复的问题,原因是Opera font-face bug,正确的解决方案是添加双引号:stackoverflow.com/questions/4736471/…