我正在使用这个 css,但它不能正常工作。
@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;
}