【发布时间】:2015-06-07 15:44:31
【问题描述】:
我在我的网页中使用自定义字体。我正在使用 4 种自定义字体,它们都适用于 chrome 和 firefox,但只有一种字体(RalewayMedium)适用于 ie10 其余不工作.. 有什么问题?
这是我使用的字体:
@font-face {
font-family: 'OpenSansLight'; /*a name to be used later*/
src: url('../fonts/OpenSans-Light.ttf'); /*URL to font*/
}
@font-face {
font-family: 'LatoRegular'; /*a name to be used later*/
src: url('../fonts/Lato-Regular.ttf'); /*URL to font*/
}
@font-face { //only one works!
font-family: 'RalewayMedium'; /*a name to be used later*/
src: url('../fonts/Raleway-Medium.ttf'); /*URL to font*/
}
@font-face {
font-family: 'OpenSansRegular'; /*a name to be used later*/
src: url('../fonts/OpenSans-Regular.ttf'); /*URL to font*/
}
【问题讨论】:
标签: html css fonts internet-explorer-10