【发布时间】:2014-02-10 02:32:06
【问题描述】:
我正在尝试添加用于显示货币符号(俄罗斯卢布)的字体。我使用的代码取自here。我还添加了魔法zoom: 1;。但它不起作用。
字体定义
@font-face {
font-family: "Rouble";
src: url('/catalog/view/font/rouble.eot'); /* IE9 Compat Modes */
src: url('/catalog/view/font/rouble.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
url('/catalog/view/font/rouble.woff') format('woff'), /* Modern Browsers */
url('/catalog/view/font/rouble.ttf') format('truetype'), /* Safari, Android, iOS */
url('/catalog/view/font/rouble.svg#Rouble') format('svg'); /* Legacy iOS */
}
然后使用
.rubl {
font-family: "Rouble";
font-style: normal;
font-weight: normal;
zoom: 1;
}
我在 WM VirtualBox taken from here 下使用 Win Vista 的 ie7 对其进行测试(如果有问题的话)。
我做错了什么?
您可以看到here的现场示例(登录名/密码:demo/demo)
【问题讨论】:
-
看看这个:stackoverflow.com/questions/20665622/… 总而言之,你最好使用图片。
标签: html css internet-explorer fonts font-face