我在 Firefox 和 MSIE 中实现 DIN 字体时遇到问题。它在 Chrome 中运行良好。
这是导入代码:
@font-face {
font-family: DINweb;
src: url('/wp-content/themes/quickstep-child/DINWeb.eot');
src: url('/wp-content/themes/quickstep-child/DINWeb.eot?#iefix') format('embedded-opentype'),
url('/wp-content/themes/quickstep-child/DINWeb.woff') format('woff'),
url('/wp-content/themes/quickstep-child/DINWeb.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
字体在 CSS 中是这样调用的:
font-family: DINWeb, sans-serif!important;