我正在使用此css,但它无法正常工作。字体在Chrome中无法正常工作
@font-face {
font-family: OpenSans-Bold;
src: url('../design_images/font/OpenSans-Bold.eot'); /* EOT file for IE */
font-weight:normal;
font-style:normal;
}
@font-face {
font-family: OpenSans-Regular;
src:url('font/OpenSans-Regular.eot');
font-weight:normal;
font-style:normal;
}
@font-face {
font-family: Oswald-Regular;
src: url('font/Oswald-Regular.eot');
font-weight:normal;
font-style:normal;
}
@font-face {
font-family:OpenSans-Regular;
src: url('font/OpenSans-Regular.ttf'); /* TTF file for CSS3 browsers */
font-weight:normal;
font-style:normal;
}
@font-face {
font-family:OpenSans-Bold;
src: url('font/OpenSans-Bold.ttf');
font-weight:normal;
font-style:normal;
}
@font-face {
font-family: Oswald-Regular;
src: url('font/Oswald-Regular.otf');
}
.newr {
font-family:Oswald-Regular;
font-size:20px;
font-style:normal;
font-smooth:Crisp;
font-weight:normal;
color:#f9e211;
text-transform:uppercase;
margin:21px 0 0 25px;
}
定义“工作不正常”并指定使用的浏览器。 – 2013-02-19 12:16:25