【发布时间】:2017-08-10 08:42:36
【问题描述】:
我在@font-face 类中设置了charset:utf-8 属性。但它不起作用。
当我设置元数据标签时,它工作正常。
如何让这种方式也能正常工作?
我的 CSS 部分:
@font-face {
font-family: 'font-icon';
src:url('fonts/iconfont.eot');
src:url('fonts/iconfont.eot?#iefix') format('embedded-opentype'),
url('fonts/iconfont.woff') format('woff'),
url('fonts/iconfont.ttf') format('truetype'),
url('fonts/iconfont.svg#font-icon') format('svg');
font-weight: normal;
font-style: normal;
charset:utf-8;
}
【问题讨论】: