对于<i>
标签,我想英文字符显示为斜体,非英语字符显示为正常。字体样式@字体面不与本地字体工作
这是我的CSS。
@font-face {
font-family: MyCustomFont;
src: local(Kaiti);
}
@font-face {
font-family: MyCustomFont;
font-style:italic;
unicode-range: U+00-024F;
src: local(Arial);
}
i {
font-family: MyCustomFont;
font-style:normal;
}
实际的结果是
非英语字符是凯提normak,这是正确的,但是英文字符不是宋体斜体。我错过了什么吗?
我使用的是Chrome 54.0。
您的前两个选择似乎是一样。 @ font-face –