并非所有浏览器都支持自定义字体

时间:2019-02-28 06:40:14

标签: css3 fonts

任何浏览器均不支持自定义字体。这是我用于声明和访问字体的代码。

@font-face {
    font-family: 'Graphik-regular';
    src: url('192.168.1.11/assets/fonts/Graphik/Graphik-Regular.eot');
    src: url('192.168.1.11/assets/fonts/Graphik/Graphik-Regular.eot?#iefix') format('embedded-opentype'),
        url('192.168.1.11/assets/fonts/Graphik/Graphik-Regular.woff2') format('woff2'),
        url('192.168.1.11/assets/fonts/Graphik/Graphik-Regular.woff') format('woff'),
        url('192.168.1.11/assets/fonts/Graphik/Graphik-Regular.ttf') format('truetype');
    }

@font-face {
    font-family: 'Graphik-medium';
    src: url('192.168.1.11/assets/fonts/Graphik/Graphik-Medium.eot');
    src: url('192.168.1.11/assets/fonts/Graphik/Graphik-Medium.eot?#iefix') format('embedded-opentype'),
        url('192.168.1.11/assets/fonts/Graphik/Graphik-Medium.woff2') format('woff2'),
        url('192.168.1.11/assets/fonts/Graphik/Graphik-Medium.woff') format('woff'),
        url('192.168.1.11/assets/fonts/Graphik/Graphik-Medium.ttf') format('truetype'),
}

0 个答案:

没有答案