CSS @font-face not working in IE8

前端 未结 4 1681
后悔当初
后悔当初 2020-11-30 00:45

I have tried reading multiple articles on how to deal with custom fonts in IE, but they never seemed to work for me. I tried converting the fonts to EOT, but th

4条回答
  •  余生分开走
    2020-11-30 01:31

    if IE8 thinks it supports any other format other than eot of the ones listed below, then it will probably try to use that one. Maybe you could use a IE8 hack, like

    src: local('☺'), url('../fonts/klavika.woff') format('woff'), url('../fonts/klavika.ttf') format('truetype'), url('../fonts/klavika.svg') format('svg');
    src /*\**/: url('../fonts/klavika.eot')\9
    

    so only IE8 will read the last src line and thus load the .eot.

提交回复
热议问题