Explorer(11)字体包含不起作用

时间:2022-10-09 22:58:43

I really don't know what is the problem with my css, but the font doesn't work in ie. I tried everything what I found here or on the net. Somebody have any idea? (My eot font is converted from otf.) Here is my css:

我真的不知道我的CSS有什么问题,但字体在ie中不起作用。我尝试了我在这里或网上找到的所有东西。有人有什么想法吗? (我的eot字体是从otf转换而来的。)这是我的css:

@font-face {
    font-family: 'glober-bold';
    src: url('glober-bold.eot?#iefix') format('embedded-opentype'), 
         url('glober-bold.ttf')  format('truetype'),
    }

body{font-family:"glober-bold", sans-serif;}

1 个解决方案

#1


Try more formats like this (include WOFF):

尝试更多这样的格式(包括WOFF):

@font-face {
                font-family: 'BankGothicMdBTMedium';
                src: url('style/bankgthd-webfont.eot');
                src: local('BankGothic Md BT'), local('BankGothicBTMedium'), url('style/bankgthd-webfont.woff') format('woff'), url('style/bankgthd-webfont.ttf') format('truetype'), url('style/bankgthd-webfont.svg#webfontNgZtDOtM') format('svg');
                font-weight: normal;
                font-style: normal;
            }
HTML, BODY {
                font-family: BankGothicMdBTMedium, tahoma, lucida, courier;
                font-size: 18px;
            }

#1


Try more formats like this (include WOFF):

尝试更多这样的格式(包括WOFF):

@font-face {
                font-family: 'BankGothicMdBTMedium';
                src: url('style/bankgthd-webfont.eot');
                src: local('BankGothic Md BT'), local('BankGothicBTMedium'), url('style/bankgthd-webfont.woff') format('woff'), url('style/bankgthd-webfont.ttf') format('truetype'), url('style/bankgthd-webfont.svg#webfontNgZtDOtM') format('svg');
                font-weight: normal;
                font-style: normal;
            }
HTML, BODY {
                font-family: BankGothicMdBTMedium, tahoma, lucida, courier;
                font-size: 18px;
            }